line: "{{ item.line }}"
backrefs: yes
loop:
- - { regexp: "^( *cfg_file *= *localhost.cfg)", line: "# \\1" }
+ - { regexp: "^( *cfg_file *=.*/localhost.cfg)", line: "#\\1" }
- { regexp: "^( *admin_email *= *)",
line: "\\1{{ ansible_user }}@localhost" }
notify: Reload NAGIOS4.
line: "{{ item.line }}"
backrefs: yes
loop:
- - { regexp: "^( *cfg_file *= *localhost.cfg)", line: "# \\1" }
+ - { regexp: "^( *cfg_file *=.*/localhost.cfg)", line: "#\\1" }
- { regexp: "^( *admin_email *= *)",
line: "\\1{{ ansible_user }}@localhost" }
notify: Reload NAGIOS4.