You've already forked ansible-role-unix-users
fix: copy only missing skel files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -75,14 +75,14 @@
|
||||
when: unix_user.value.btrfs is defined and
|
||||
unix_user.value.btrfs
|
||||
block:
|
||||
- name: "Copy skel dir"
|
||||
ansible.builtin.copy:
|
||||
src: /etc/skel/
|
||||
dest: "{{ user_user_home }}"
|
||||
remote_src: true
|
||||
owner: "{{ unix_user.key }}"
|
||||
group: "{{ unix_user.value.group | default('users') }}"
|
||||
mode: "0644"
|
||||
- name: "Copy skel files"
|
||||
ansible.builtin.include_tasks: copy_skel_file.yml
|
||||
loop_control:
|
||||
loop_var: skel_file
|
||||
with_items:
|
||||
- ".bash_logout"
|
||||
- ".bash_profile"
|
||||
- ".bashrc"
|
||||
- name: "Change permission unix users home dir: {{ unix_user.key }}"
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_user_home }}"
|
||||
|
Reference in New Issue
Block a user