Don't allow the env files to fail. Fix which user the profile files are created for.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user