Update update-host.yml
This commit is contained in:
@@ -19,3 +19,9 @@
|
|||||||
- name: Apt Autoclean
|
- name: Apt Autoclean
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
autoclean: true
|
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
|
||||||
Reference in New Issue
Block a user