Add mail02.home.foo.sh host
This commit is contained in:
parent
8ef85fc318
commit
222e8c59ec
4 changed files with 42 additions and 3 deletions
7
group_vars/mail.yml
Normal file
7
group_vars/mail.yml
Normal 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}
|
12
host_vars/mail02.home.foo.sh.yml
Normal file
12
host_vars/mail02.home.foo.sh.yml
Normal 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
10
hosts
|
@ -1,9 +1,6 @@
|
||||||
[adm]
|
[adm]
|
||||||
adm01.home.foo.sh
|
adm01.home.foo.sh
|
||||||
|
|
||||||
[mirror]
|
|
||||||
mirror01.home.foo.sh
|
|
||||||
|
|
||||||
[collab]
|
[collab]
|
||||||
collab01.home.foo.sh
|
collab01.home.foo.sh
|
||||||
|
|
||||||
|
@ -20,6 +17,12 @@ ldap02.home.foo.sh
|
||||||
[log]
|
[log]
|
||||||
log01.home.foo.sh
|
log01.home.foo.sh
|
||||||
|
|
||||||
|
[mail]
|
||||||
|
mail02.home.foo.sh
|
||||||
|
|
||||||
|
[mirror]
|
||||||
|
mirror01.home.foo.sh
|
||||||
|
|
||||||
[nas]
|
[nas]
|
||||||
nas02.home.foo.sh
|
nas02.home.foo.sh
|
||||||
|
|
||||||
|
@ -45,6 +48,7 @@ atl01.vultr.foo.sh
|
||||||
|
|
||||||
[centos8:children]
|
[centos8:children]
|
||||||
adm
|
adm
|
||||||
|
mail
|
||||||
nas
|
nas
|
||||||
shell
|
shell
|
||||||
static
|
static
|
||||||
|
|
16
playbooks/mail.yml
Normal file
16
playbooks/mail.yml
Normal 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
|
Loading…
Add table
Reference in a new issue