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