Add moin host group

This commit is contained in:
Timo Makinen 2020-08-28 10:41:27 +00:00
parent 5c62106142
commit fbc8fa55c5
4 changed files with 41 additions and 0 deletions

7
group_vars/moin.yml Normal file
View file

@ -0,0 +1,7 @@
---
datadisks:
- 10
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}

View file

@ -0,0 +1,6 @@
---
vmhost: vmhost01.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: 52:54:00:ac:dc:2b

4
hosts
View file

@ -4,6 +4,9 @@ adm01.home.foo.sh
[mirror]
mirror01.home.foo.sh
[moin]
moin01.home.foo.sh
[git]
git02.home.foo.sh
@ -28,6 +31,7 @@ adm
git
ldap
mirror
moin
[openbsd:children]
gw

24
playbooks/moin.yml Normal file
View file

@ -0,0 +1,24 @@
---
- import_playbook: "include/vm-create.yml myhosts=moin01.home.foo.sh"
- name: configure instance
hosts: moin
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base