Add db01.home.foo.sh
This commit is contained in:
parent
5282a19463
commit
1e69b21b08
4 changed files with 41 additions and 0 deletions
7
group_vars/db.yml
Normal file
7
group_vars/db.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
datadisks:
|
||||
- 50
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 3306, from: [172.20.20.0/22]}
|
6
host_vars/db01.home.foo.sh.yml
Normal file
6
host_vars/db01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost01.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:23
|
4
hosts
4
hosts
|
@ -4,6 +4,9 @@ adm01.home.foo.sh
|
|||
[collab]
|
||||
collab01.home.foo.sh
|
||||
|
||||
[db]
|
||||
db01.home.foo.sh
|
||||
|
||||
[fsolgw]
|
||||
fsol-gw01.home.foo.sh
|
||||
fsol-gw02.home.foo.sh
|
||||
|
@ -66,6 +69,7 @@ atl01.vultr.foo.sh
|
|||
|
||||
[centos8:children]
|
||||
adm
|
||||
db
|
||||
git
|
||||
mail
|
||||
mirror
|
||||
|
|
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