You've already forked ansible-role-common
Updated regex for postfix configurations
This commit is contained in:
@@ -11,20 +11,20 @@
|
||||
when: "'SMTP0' not in inventory_hostname"
|
||||
with_items:
|
||||
- { dest: /etc/postfix/main.cf,
|
||||
regexp: "inet_protocols =",
|
||||
regexp: "^.?inet_protocols =",
|
||||
line: "inet_protocols = ipv4"
|
||||
}
|
||||
- { dest: /etc/postfix/main.cf,
|
||||
regexp: "inet_interfaces =",
|
||||
regexp: "^.?inet_interfaces =",
|
||||
line: "inet_interfaces = all"
|
||||
}
|
||||
- { dest: /etc/postfix/main.cf,
|
||||
regexp: "relayhost =",
|
||||
regexp: "^.?relayhost =",
|
||||
line: "relayhost = {{ relayhost }}"
|
||||
}
|
||||
- {
|
||||
dest: /etc/postfix/main.cf,
|
||||
regexp: "smtp_randomize_addresses =",
|
||||
regexp: "^.?smtp_randomize_addresses =",
|
||||
line: "smtp_randomize_addresses = no"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user