change the register name ansible did not like the name.
This commit is contained in:
parent
267eecfda9
commit
001012436b
|
@ -20,9 +20,9 @@
|
||||||
- name: check before cleanup
|
- name: check before cleanup
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: cloudflared.deb
|
path: cloudflared.deb
|
||||||
register: cloudflared-file
|
register: cloudflaredfile
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
when: cloudflared-file.stat.exists
|
when: cloudflaredfile.stat.exists
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: "rm cloudflared.deb"
|
cmd: "rm cloudflared.deb"
|
Loading…
Reference in New Issue