Add postfix role

This commit is contained in:
Salt 2020-04-26 03:48:55 -05:00
parent cf2c23647b
commit 6d1fb9d41d
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
---
allow_duplicates: no

View 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

View File

@ -0,0 +1,5 @@
myhostname = {{ postfix_hostname }}
myorigin = $mydomain
#relayhost = $mydomain
inet_interfaces = loopback-only
mydestination =