Update regexp for rule 2.1.21 to be more strict when updating line in file; allows task to be idempotent with itself
Signed-off-by: Shawn Hardwick <time4swim@gmail.com>
This commit is contained in:
parent
8a38650658
commit
1cf3c4d58b
|
@ -699,7 +699,7 @@
|
|||
notify: Restart postfix
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/postfix/main.cf
|
||||
regexp: '^(#)?inet_interfaces'
|
||||
regexp: '^(#)?inet_interfaces\s*=(?!\s*loopback-only\s*).*'
|
||||
line: 'inet_interfaces = loopback-only'
|
||||
|
||||
- name: "2.1.21 | WARN | Ensure mail transfer agents are configured for local-only mode | Message out other main agents"
|
||||
|
|
Loading…
Reference in New Issue