You've already forked ansible-role-common
Move postfix configuration to block
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
---
|
||||
- name: Apply postfix configuration
|
||||
- name: Postfix Configuration
|
||||
block:
|
||||
- name: postfix | Apply postfix configuration
|
||||
lineinfile:
|
||||
dest: "{{item.dest}}"
|
||||
regexp: "{{item.regexp}}"
|
||||
@@ -26,11 +28,12 @@
|
||||
line: "smtp_randomize_addresses = no"
|
||||
}
|
||||
|
||||
- name: Ensure Postfix is Started/Enabled
|
||||
- name: postfix | Ensure Postfix is Started/Enabled
|
||||
service:
|
||||
name: postfix
|
||||
state: started
|
||||
enabled: yes
|
||||
when: "{{ postfix_configure }}"
|
||||
|
||||
- name: Ensure root forwarding address is set
|
||||
lineinfile:
|
||||
|
||||
Reference in New Issue
Block a user