Add become to all become_user tasks.

This commit is contained in:
me
2026-10-02 07:58:58 -07:00
parent f808eb7ecb
commit ff548cc7a2
10 changed files with 46 additions and 10 deletions
+3
View File
@@ -77,6 +77,7 @@
shell: "echo SUCCESS"
args:
executable: "{{ user_shell }}"
become: true
become_user: "{{ user }}"
@@ -105,6 +106,7 @@
- "{{ user_user.home }}/Reports"
- "{{ user_user.home }}/Torrentz"
- "{{ user_user.home }}/Seedz"
become: true
become_user: "{{ user }}"
when: user_user.home != ""
@@ -115,6 +117,7 @@
mode: '0755'
loop:
- "{{ user_user.home }}/Code"
become: true
become_user: "{{ user }}"
when: user_user.home != "" and coding
+3 -3
View File
@@ -26,7 +26,7 @@
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true
mode: '0440'
validate: 'visudo -cf %s'
validate: 'visudo -cf %s'
- name: General | Software | AUR | Check
command: "which {{ aur_helper }}"
@@ -47,8 +47,8 @@
- name: General | Software | AUR | Install | Build & Integrate
shell: "cd {{ aur_helper_dir }} && makepkg -si --noconfirm"
become: true
become_user: "{{ aur_user }}"
changed_when: true
changed_when: true
when: yay_check.rc != 0
+1
View File
@@ -23,6 +23,7 @@
- "chmod 755 {{ nix_exe }}"
- "{{ nix_exe }} --daemon --yes"
- "rm -v {{ nix_exe }}"
become: true
become_user: "{{ user }}"
- name: Install Nix Software