change the register name ansible did not like the name.

This commit is contained in:
Justin 2025-01-26 01:27:58 +00:00
parent 267eecfda9
commit 001012436b
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@
- name: check before cleanup
ansible.builtin.stat:
path: cloudflared.deb
register: cloudflared-file
register: cloudflaredfile
- name: Cleanup
when: cloudflared-file.stat.exists
when: cloudflaredfile.stat.exists
ansible.builtin.command:
cmd: "rm cloudflared.deb"