From 4bd402b8271c2cf84a506f855b0b35cdc5bbcf61 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 23 Dec 2024 23:51:33 +0100 Subject: [PATCH] Aggiunta become su alcuni task da fare con utente specifico. --- roles/zsh/tasks/config/main.yml | 4 ++++ 1 file changed, 4 insertions(+) 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