add adm01.home.foo.sh
Temporarily running in vmhost02
This commit is contained in:
parent
f05112b125
commit
eb92f9f7bd
4 changed files with 41 additions and 0 deletions
7
group_vars/adm.yml
Normal file
7
group_vars/adm.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
datadisks:
|
||||||
|
- 10
|
||||||
|
|
||||||
|
firewall_in:
|
||||||
|
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
3
host_vars/adm01.home.foo.sh.yml
Normal file
3
host_vars/adm01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
interfaces: [[20, "52:54:00:ac:dc:0b"]]
|
||||||
|
vmhost: vmhost02.home.foo.sh
|
6
hosts
6
hosts
|
@ -1,3 +1,6 @@
|
||||||
|
[adm]
|
||||||
|
adm01.home.foo.sh
|
||||||
|
|
||||||
[mirror]
|
[mirror]
|
||||||
mirror01.home.foo.sh
|
mirror01.home.foo.sh
|
||||||
|
|
||||||
|
@ -18,6 +21,9 @@ log01.home.foo.sh
|
||||||
proxy01.home.foo.sh
|
proxy01.home.foo.sh
|
||||||
proxy02.home.foo.sh
|
proxy02.home.foo.sh
|
||||||
|
|
||||||
|
[centos8:children]
|
||||||
|
adm
|
||||||
|
|
||||||
[centos7:children]
|
[centos7:children]
|
||||||
git
|
git
|
||||||
ldap
|
ldap
|
||||||
|
|
25
playbooks/adm.yml
Normal file
25
playbooks/adm.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue