You've already forked ansible-role-common
Added loop_control construct
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
block:
|
block:
|
||||||
- name: postfix | Apply postfix configuration
|
- name: postfix | Apply postfix configuration
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ configurations.dest }}"
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ configurations.regexp }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ configurations.line }}"
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
notify: Restart Postfix
|
notify: Restart Postfix
|
||||||
when: "'SMTP0' not in inventory_hostname"
|
when: "'SMTP0' not in inventory_hostname"
|
||||||
@@ -30,6 +30,8 @@
|
|||||||
regexp: "^.?smtp_randomize_addresses =",
|
regexp: "^.?smtp_randomize_addresses =",
|
||||||
line: "smtp_randomize_addresses = no",
|
line: "smtp_randomize_addresses = no",
|
||||||
}
|
}
|
||||||
|
loop_control:
|
||||||
|
loop_var: configurations
|
||||||
|
|
||||||
- name: postfix | Ensure Postfix is Started/Enabled
|
- name: postfix | Ensure Postfix is Started/Enabled
|
||||||
service:
|
service:
|
||||||
|
|||||||
Reference in New Issue
Block a user