diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index b0fb279..fca173e 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1366,6 +1366,12 @@ {{ function_restart }} {{ mullvadrc }} +- name: General | Account Management | Users | Files | Defaults + ansible.builtin.shell: "cp /etc/skel/.*{profile,rc,logout} {{ user_user.home }}" + register: shell_check + changed_when: shell_check.rc == 0 + when: user_user.home != "" + - name: General | Account Management | Users | Files | .profile + .xsessionrc ansible.builtin.blockinfile: path: "{{ user_user.home }}/{{ item }}" @@ -1373,7 +1379,7 @@ {{ profile_common }} [[ $(whoami) != "root" ]] && - echo "`date` - Ansible .profile loaded successfully!" + echo "`date` - Ansible .*profile loaded successfully!" marker: '# {mark} MANAGED BY ANSIBLE | Aliases' state: present create: true @@ -1436,6 +1442,7 @@ - .profile - .xprofile - .xsessionrc + - .bash_profile - name: General | Account Management | Users | Files | Helper Functions (Reset)