Add ensure-patchmon-compliance

This commit is contained in:
2026-02-25 18:42:31 -05:00
parent 856942bfaf
commit 34b43c1eaa

View File

@@ -0,0 +1,19 @@
---
- name: Ensure compliance integration is enabled
hosts: all
become: true
tasks:
- name: Set compliance to true if currently false
ansible.builtin.replace:
path: /etc/patchmon/config.yml
regexp: '^(\s*compliance:\s*)false'
replace: '\1true'
backup: true
notify: Restart patchmon
handlers:
- name: Restart patchmon
ansible.builtin.service:
name: patchmon
state: restarted