Update update-host.yml
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user