fix if file is not already present
This commit is contained in:
parent
6963d9fc16
commit
2f0d6be4e9
1 changed files with 5 additions and 4 deletions
|
@ -3,10 +3,11 @@
|
|||
# Check for the distribution
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- name: Delete local tmp file
|
||||
file:
|
||||
path: /tmp/ansible_dump_dist_version.txt
|
||||
state: absent
|
||||
- name: Make sure local file exist but is empty # weird hack, I know
|
||||
copy:
|
||||
dest: /tmp/ansible_dump_reboot_needed.txt
|
||||
content: ""
|
||||
force: true
|
||||
|
||||
- hosts: all,!unifi
|
||||
tasks:
|
||||
|
|
Loading…
Reference in a new issue