updated all references to tmp dir to include hostname path component
This commit is contained in:
parent
b0647f3502
commit
e962bcd803
|
@ -41,7 +41,7 @@
|
|||
############################################################
|
||||
- name: Copy files to /usr/local/bin
|
||||
copy:
|
||||
src: "/tmp/du_backups/{{ item }}"
|
||||
src: "/tmp/{{ ansible_hostname }}/du_backups/{{ item }}"
|
||||
dest: "/usr/local/bin/{{ item }}"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -58,7 +58,7 @@
|
|||
############################################################
|
||||
- name: Copy du-list to /usr/local/etc (if it doesn't exist)
|
||||
copy:
|
||||
src: "/tmp/du_backups/du-list"
|
||||
src: "/tmp/{{ ansible_hostname }}/du_backups/du-list"
|
||||
dest: "/usr/local/etc/du-list"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -108,7 +108,7 @@
|
|||
|
||||
############################################################
|
||||
- name: clean up cloned git repo
|
||||
command: 'rm -rf /tmp/du_backups'
|
||||
command: 'rm -rf /tmp/{{ ansible_hostname }}/du_backups'
|
||||
delegate_to: 127.0.0.1
|
||||
|
||||
# EOF
|
||||
|
|
Loading…
Reference in New Issue