Don't allow the env files to fail. Fix which user the profile files are created for.

This commit is contained in:
2026-07-17 18:39:38 -07:00
parent 99966ea0c4
commit 2de2fb1966
+1 -4
View File
@@ -1202,7 +1202,7 @@
- name: General | Account Management | Users | Files | .profile + .xsessionrc
blockinfile:
path: "{{ user_root.home }}/{{ item }}"
path: "{{ user_user.home }}/{{ item }}"
block: |
{{ profile_common }}
@@ -1216,7 +1216,6 @@
- ".profile"
- ".xprofile"
- ".xsessionrc"
ignore_errors: yes
when: user_user.home != ""
- name: General | Account Management | Users | Files | .bashrc
@@ -1238,7 +1237,6 @@
loop:
- "{{ user_root.home }}"
- "{{ user_user.home }}"
ignore_errors: yes
when: user_root.home != "" and user_user.home != ""
- name: General | Account Management | Users | Files | .zshrc
@@ -1255,7 +1253,6 @@
loop:
- "{{ user_root.home }}"
- "{{ user_user.home }}"
ignore_errors: yes
when: user_root.home != "" and user_user.home != ""
- name: General | Account Management | Users | Files | Ownership