Added loop_control construct
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-02 11:51:16 +13:00
parent cd70c9ee4d
commit fa6e6b9a75

View File

@@ -3,9 +3,9 @@
block:
- name: postfix | Apply postfix configuration
lineinfile:
dest: "{{ item.dest }}"
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
dest: "{{ configurations.dest }}"
regexp: "{{ configurations.regexp }}"
line: "{{ configurations.line }}"
insertafter: EOF
notify: Restart Postfix
when: "'SMTP0' not in inventory_hostname"
@@ -30,6 +30,8 @@
regexp: "^.?smtp_randomize_addresses =",
line: "smtp_randomize_addresses = no",
}
loop_control:
loop_var: configurations
- name: postfix | Ensure Postfix is Started/Enabled
service: