diff --git a/ensure-patchmon-compliance.yml b/ensure-patchmon-compliance.yml index 7b4c886..91adc89 100644 --- a/ensure-patchmon-compliance.yml +++ b/ensure-patchmon-compliance.yml @@ -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: