Update ensure-patchmon-compliance.yml
This commit is contained in:
@@ -4,12 +4,12 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set compliance to true if currently false
|
- name: Set integrations.compliance to true if currently false
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /etc/patchmon/config.yml
|
path: /etc/patchmon/config.yml
|
||||||
regexp: '^(\s*compliance:\s*)false'
|
regexp: '(^integrations:\n(?:[ \t]+.*\n)*?[ \t]+compliance:\s*)false'
|
||||||
replace: '\1true'
|
replace: '\1true'
|
||||||
backup: no
|
backup: true
|
||||||
notify: Restart patchmon
|
notify: Restart patchmon
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|||||||
Reference in New Issue
Block a user