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
|
- name: General | Account Management | Users | Files | .profile + .xsessionrc
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ user_root.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
block: |
|
block: |
|
||||||
{{ profile_common }}
|
{{ profile_common }}
|
||||||
|
|
||||||
@@ -1216,7 +1216,6 @@
|
|||||||
- ".profile"
|
- ".profile"
|
||||||
- ".xprofile"
|
- ".xprofile"
|
||||||
- ".xsessionrc"
|
- ".xsessionrc"
|
||||||
ignore_errors: yes
|
|
||||||
when: user_user.home != ""
|
when: user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | .bashrc
|
- name: General | Account Management | Users | Files | .bashrc
|
||||||
@@ -1238,7 +1237,6 @@
|
|||||||
loop:
|
loop:
|
||||||
- "{{ user_root.home }}"
|
- "{{ user_root.home }}"
|
||||||
- "{{ user_user.home }}"
|
- "{{ user_user.home }}"
|
||||||
ignore_errors: yes
|
|
||||||
when: user_root.home != "" and user_user.home != ""
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | .zshrc
|
- name: General | Account Management | Users | Files | .zshrc
|
||||||
@@ -1255,7 +1253,6 @@
|
|||||||
loop:
|
loop:
|
||||||
- "{{ user_root.home }}"
|
- "{{ user_root.home }}"
|
||||||
- "{{ user_user.home }}"
|
- "{{ user_user.home }}"
|
||||||
ignore_errors: yes
|
|
||||||
when: user_root.home != "" and user_user.home != ""
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | Ownership
|
- name: General | Account Management | Users | Files | Ownership
|
||||||
|
|||||||
Reference in New Issue
Block a user