From 69eefa4f3fa0b5054eb504a341f9f582a7131785 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Fri, 19 Apr 2024 08:36:32 +0200 Subject: [PATCH] Fix ansible-lint offenses --- roles/drupal/tasks/instance.yml | 1 + roles/zsh/tasks/setup.yml | 2 +- roles/zsh/tasks/zshrc.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/drupal/tasks/instance.yml b/roles/drupal/tasks/instance.yml index d47a1f2..387b99d 100644 --- a/roles/drupal/tasks/instance.yml +++ b/roles/drupal/tasks/instance.yml @@ -14,6 +14,7 @@ path: '{{ instance.dir }}' owner: '{{ instance.drupal_user }}' group: '{{ instance.drupal_group | default(nginx_group) }}' + mode: '0755' state: directory when: instance.drupal_user is defined and instance.drupal_user != 'root' diff --git a/roles/zsh/tasks/setup.yml b/roles/zsh/tasks/setup.yml index 1ff569a..c622561 100644 --- a/roles/zsh/tasks/setup.yml +++ b/roles/zsh/tasks/setup.yml @@ -31,5 +31,5 @@ - name: Install auto-ls plugin ansible.builtin.copy: src: auto-ls.zsh - dest: '{{zsh_auto_ls_plugin_file }}' + dest: '{{ zsh_auto_ls_plugin_file }}' mode: 0644 diff --git a/roles/zsh/tasks/zshrc.yml b/roles/zsh/tasks/zshrc.yml index ec9dc54..3f42906 100644 --- a/roles/zsh/tasks/zshrc.yml +++ b/roles/zsh/tasks/zshrc.yml @@ -18,7 +18,7 @@ become_user: '{{ zsh_user }}' - name: Set zsh as default shell - user: + ansible.builtin.user: name: "{{ ansible_user | default(ansible_env.USER) }}" shell: /usr/bin/zsh when: zsh_default_shell