From 027dfc2a485f6d70ec0b49ecf27fd31aaaad81ad Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sat, 20 Mar 2021 02:01:57 +0000 Subject: [PATCH] Add print01 host --- group_vars/print.yml | 4 ++++ host_vars/print01.home.foo.sh.yml | 11 +++++++++++ hosts | 4 ++++ playbooks/print.yml | 15 +++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 group_vars/print.yml create mode 100644 host_vars/print01.home.foo.sh.yml create mode 100644 playbooks/print.yml diff --git a/group_vars/print.yml b/group_vars/print.yml new file mode 100644 index 0000000..07d697b --- /dev/null +++ b/group_vars/print.yml @@ -0,0 +1,4 @@ +--- +firewall_in: + - {proto: tcp, port: 22, from: [172.20.20.0/22]} + - {proto: tcp, port: 443, from: [172.20.20.0/22]} diff --git a/host_vars/print01.home.foo.sh.yml b/host_vars/print01.home.foo.sh.yml new file mode 100644 index 0000000..24b1702 --- /dev/null +++ b/host_vars/print01.home.foo.sh.yml @@ -0,0 +1,11 @@ +--- +vmhost: vmhost01.home.foo.sh +network_interfaces: + - device: eth0 + vlan: 20 + mac: "52:54:00:ac:dc:1b" + - device: eth1 + vlan: 24 + ipaddr: 172.20.24.2 + netmask: 255.255.255.0 + proto: static diff --git a/hosts b/hosts index 3b5f8cb..72a65b3 100644 --- a/hosts +++ b/hosts @@ -42,6 +42,9 @@ ns01.home.foo.sh ns02.home.foo.sh atl01.vultr.foo.sh +[print] +print01.home.foo.sh + [proxy] proxy01.home.foo.sh proxy02.home.foo.sh @@ -69,6 +72,7 @@ mirror munin nas nms +print shell static vmhost diff --git a/playbooks/print.yml b/playbooks/print.yml new file mode 100644 index 0000000..93fa46a --- /dev/null +++ b/playbooks/print.yml @@ -0,0 +1,15 @@ +--- +- import_playbook: "include/deploy-kvm-guest.yml myhosts=print" + +- name: configure instance + hosts: print + user: root + gather_facts: true + + vars_files: + - "{{ ansible_private }}/vars.yml" + + roles: + - base + - sssd + - mkhomedir