users-systemfiles.yml: add flag '-a' to some copy commands.
This commit is contained in:
parent
462e65766b
commit
82e4cf0bd6
@ -32,7 +32,7 @@
|
|||||||
- bash
|
- bash
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Backup existing users .bashrc file
|
- name: (users-systemfiles.yml) Backup existing users .bashrc file
|
||||||
command: cp ~{{ item.item.name }}/.bashrc ~{{ item.item.name }}/.bashrc.ORIG
|
command: cp -a ~{{ item.item.name }}/.bashrc ~{{ item.item.name }}/.bashrc.ORIG
|
||||||
loop: "{{ bashrc_user_orig_exists.results }}"
|
loop: "{{ bashrc_user_orig_exists.results }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.item.name }}'
|
||||||
@ -97,7 +97,7 @@
|
|||||||
- profile
|
- profile
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Backup existing users .profile file
|
- name: (users-systemfiles.yml) Backup existing users .profile file
|
||||||
command: cp ~{{ item.item.name }}/.profile ~{{ item.item.name }}/.profile.ORIG
|
command: cp -a ~{{ item.item.name }}/.profile ~{{ item.item.name }}/.profile.ORIG
|
||||||
loop: "{{ profile_user_orig_exists.results }}"
|
loop: "{{ profile_user_orig_exists.results }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.item.name }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user