From 222e8c59ec7a377bfa6225aab08db01a8bdb8f59 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 24 Sep 2020 14:46:24 +0000 Subject: [PATCH] Add mail02.home.foo.sh host --- group_vars/mail.yml | 7 +++++++ host_vars/mail02.home.foo.sh.yml | 12 ++++++++++++ hosts | 10 +++++++--- playbooks/mail.yml | 16 ++++++++++++++++ 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 group_vars/mail.yml create mode 100644 host_vars/mail02.home.foo.sh.yml create mode 100644 playbooks/mail.yml diff --git a/group_vars/mail.yml b/group_vars/mail.yml new file mode 100644 index 0000000..8879859 --- /dev/null +++ b/group_vars/mail.yml @@ -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} diff --git a/host_vars/mail02.home.foo.sh.yml b/host_vars/mail02.home.foo.sh.yml new file mode 100644 index 0000000..586fcc2 --- /dev/null +++ b/host_vars/mail02.home.foo.sh.yml @@ -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 diff --git a/hosts b/hosts index a90914e..6b193e1 100644 --- a/hosts +++ b/hosts @@ -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 diff --git a/playbooks/mail.yml b/playbooks/mail.yml new file mode 100644 index 0000000..e7f0556 --- /dev/null +++ b/playbooks/mail.yml @@ -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