Add db02.home.foo.sh
This commit is contained in:
parent
a789d16e2d
commit
56f2058c7e
4 changed files with 40 additions and 0 deletions
6
group_vars/db.yml
Normal file
6
group_vars/db.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
datadisks:
|
||||
- 20
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 3389, from: [172.20.20.0/22]}
|
6
host_vars/db02.home.foo.sh.yml
Normal file
6
host_vars/db02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost02.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:24
|
4
hosts
4
hosts
|
@ -8,6 +8,9 @@ backup02.home.foo.sh
|
|||
[collab]
|
||||
collab01.home.foo.sh
|
||||
|
||||
[db]
|
||||
db02.home.foo.sh
|
||||
|
||||
[dnagw]
|
||||
dna-gw01.home.foo.sh
|
||||
dna-gw02.home.foo.sh
|
||||
|
@ -77,6 +80,7 @@ atl01.vultr.foo.sh
|
|||
|
||||
[centos8:children]
|
||||
adm
|
||||
db
|
||||
git
|
||||
jenkins
|
||||
mail
|
||||
|
|
24
playbooks/db.yml
Normal file
24
playbooks/db.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=db"
|
||||
|
||||
- name: configure instance
|
||||
hosts: db
|
||||
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
|
Loading…
Add table
Reference in a new issue