Update ensure-patchmon-compliance.yml

This commit is contained in:
2026-02-25 19:05:55 -05:00
parent 8805a5011e
commit 6b19e41df4

View File

@@ -4,12 +4,12 @@
become: true
tasks:
- name: Set compliance to true if currently false
- name: Set integrations.compliance to true if currently false
ansible.builtin.replace:
path: /etc/patchmon/config.yml
regexp: '^(\s*compliance:\s*)false'
regexp: '(^integrations:\n(?:[ \t]+.*\n)*?[ \t]+compliance:\s*)false'
replace: '\1true'
backup: no
backup: true
notify: Restart patchmon
handlers: