diff --git a/update-host.yml b/update-host.yml index 70cb757..602e30c 100644 --- a/update-host.yml +++ b/update-host.yml @@ -18,4 +18,10 @@ - name: Apt Autoclean ansible.builtin.apt: - autoclean: true \ No newline at end of file + autoclean: true + + - name: Patchmon agent update + ansible.builtin.command: /usr/local/bin/patchmon-agent.sh update + register: patchmon_output + changed_when: "'updated' in patchmon_output.stdout.lower()" + failed_when: patchmon_output.rc != 0 \ No newline at end of file