Add postfix role
This commit is contained in:
parent
cf2c23647b
commit
6d1fb9d41d
2
roles/postfix-null/meta/main.yml
Normal file
2
roles/postfix-null/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: no
|
14
roles/postfix-null/tasks/main.yml
Normal file
14
roles/postfix-null/tasks/main.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- name: Set up Postfix
|
||||||
|
block:
|
||||||
|
- name: Install Postfix
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- postfix
|
||||||
|
- name: Install config
|
||||||
|
template:
|
||||||
|
src: "main.cf"
|
||||||
|
dest: "/etc/postfix/main.cf"
|
||||||
|
become: yes
|
5
roles/postfix-null/templates/main.cf
Normal file
5
roles/postfix-null/templates/main.cf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
myhostname = {{ postfix_hostname }}
|
||||||
|
myorigin = $mydomain
|
||||||
|
#relayhost = $mydomain
|
||||||
|
inet_interfaces = loopback-only
|
||||||
|
mydestination =
|
Loading…
Reference in New Issue
Block a user