diff --git a/update-host.yml b/update-host.yml index f67caf9..2135435 100644 --- a/update-host.yml +++ b/update-host.yml @@ -22,11 +22,11 @@ - name: Check if patchmon agent exists ansible.builtin.stat: - path: /usr/local/bin/patchmon-agent.sh + path: /usr/local/bin/patchmon-agent register: patchmon_agent - name: Patchmon agent update - ansible.builtin.command: bash /usr/local/bin/patchmon-agent.sh update + ansible.builtin.command: bash /usr/local/bin/patchmon-agent report when: patchmon_agent.stat.exists changed_when: false failed_when: false \ No newline at end of file