yamllint fixes

This commit is contained in:
2022-04-03 13:20:47 +12:00
parent 4b41ea1a10
commit 8925c556d6
8 changed files with 54 additions and 46 deletions

View File

@@ -10,22 +10,25 @@
notify: Restart Postfix
when: "'SMTP0' not in inventory_hostname"
with_items:
- { dest: /etc/postfix/main.cf,
- {
dest: /etc/postfix/main.cf,
regexp: "^.?inet_protocols =",
line: "inet_protocols = ipv4"
line: "inet_protocols = ipv4",
}
- { dest: /etc/postfix/main.cf,
- {
dest: /etc/postfix/main.cf,
regexp: "^.?inet_interfaces =",
line: "inet_interfaces = all"
line: "inet_interfaces = all",
}
- { dest: /etc/postfix/main.cf,
- {
dest: /etc/postfix/main.cf,
regexp: "^.?relayhost =",
line: "relayhost = {{ relayhost }}"
line: "relayhost = {{ relayhost }}",
}
- {
dest: /etc/postfix/main.cf,
regexp: "^.?smtp_randomize_addresses =",
line: "smtp_randomize_addresses = no"
line: "smtp_randomize_addresses = no",
}
- name: postfix | Ensure Postfix is Started/Enabled