Migrate to common_ prefixed vars

This commit is contained in:
2021-09-30 22:57:47 +13:00
parent e42d3c8214
commit b84bcaa7c7
3 changed files with 39 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
}
- { dest: /etc/postfix/main.cf,
regexp: "^.?relayhost =",
line: "relayhost = {{ relayhost }}"
line: "relayhost = {{ common_postfix_relayhost }}"
}
- {
dest: /etc/postfix/main.cf,
@@ -33,11 +33,11 @@
name: postfix
state: started
enabled: yes
when: postfix_configure
when: common_postfix_configure
- name: Ensure root forwarding address is set
lineinfile:
dest: ~/.forward
regexp: "{{ root_email }}"
line: "{{ root_email }}"
regexp: "{{ common_root_email }}"
line: "{{ common_root_email }}"
create: yes