diff --git a/roles/zsh/tasks/config/main.yml b/roles/zsh/tasks/config/main.yml index a4e7a99..0244311 100644 --- a/roles/zsh/tasks/config/main.yml +++ b/roles/zsh/tasks/config/main.yml @@ -9,6 +9,7 @@ name: "{{ additional_user }}" shell: /usr/bin/zsh become_user: root + become: true - name: Creating personal folder for customization ansible.builtin.file: @@ -16,12 +17,14 @@ state: directory mode: '0755' become_user: "{{ additional_user }}" + become: true - name: Removing previous file if present ansible.builtin.file: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc" state: absent become_user: "{{ additional_user }}" + become: true - name: Linking main file ansible.builtin.file: @@ -30,3 +33,4 @@ state: link force: true become_user: "{{ additional_user }}" + become: true