Add mail02.home.foo.sh host

This commit is contained in:
Timo Makinen 2020-09-24 14:46:24 +00:00
parent 8ef85fc318
commit 222e8c59ec
4 changed files with 42 additions and 3 deletions

7
group_vars/mail.yml Normal file
View file

@ -0,0 +1,7 @@
---
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 25}
- {proto: tcp, port: 465}
- {proto: tcp, port: 587}
- {proto: tcp, port: 993}

View file

@ -0,0 +1,12 @@
---
vmhost: vmhost02.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: "52:54:00:ac:dc:3c"
- device: eth1
vlan: 102
ipaddr: 37.16.96.152
netmask: 255.255.255.240
gateway: 37.16.96.145
proto: static

10
hosts
View file

@ -1,9 +1,6 @@
[adm]
adm01.home.foo.sh
[mirror]
mirror01.home.foo.sh
[collab]
collab01.home.foo.sh
@ -20,6 +17,12 @@ ldap02.home.foo.sh
[log]
log01.home.foo.sh
[mail]
mail02.home.foo.sh
[mirror]
mirror01.home.foo.sh
[nas]
nas02.home.foo.sh
@ -45,6 +48,7 @@ atl01.vultr.foo.sh
[centos8:children]
adm
mail
nas
shell
static

16
playbooks/mail.yml Normal file
View file

@ -0,0 +1,16 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=mail"
- name: configure instance
hosts: mail
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- nfs-client
- ldap/nss
- autofs