add adm01.home.foo.sh

Temporarily running in vmhost02
This commit is contained in:
Timo Makinen 2020-08-26 23:26:00 +03:00
parent f05112b125
commit eb92f9f7bd
4 changed files with 41 additions and 0 deletions

7
group_vars/adm.yml Normal file
View file

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

View file

@ -0,0 +1,3 @@
---
interfaces: [[20, "52:54:00:ac:dc:0b"]]
vmhost: vmhost02.home.foo.sh

6
hosts
View file

@ -1,3 +1,6 @@
[adm]
adm01.home.foo.sh
[mirror]
mirror01.home.foo.sh
@ -18,6 +21,9 @@ log01.home.foo.sh
proxy01.home.foo.sh
proxy02.home.foo.sh
[centos8:children]
adm
[centos7:children]
git
ldap

25
playbooks/adm.yml Normal file
View file

@ -0,0 +1,25 @@
---
- import_playbook: "include/vm-create.yml myhosts=adm01.home.foo.sh"
- name: configure instance
hosts: adm
user: root
gather_facts: true
vars_files:
- /srv/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
- ansible-host