Add db01.home.foo.sh

This commit is contained in:
Timo Makinen 2021-03-23 17:15:02 +00:00
parent 5282a19463
commit 1e69b21b08
4 changed files with 41 additions and 0 deletions

7
group_vars/db.yml Normal file
View 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]}

View 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
View file

@ -4,6 +4,9 @@ adm01.home.foo.sh
[collab] [collab]
collab01.home.foo.sh collab01.home.foo.sh
[db]
db01.home.foo.sh
[fsolgw] [fsolgw]
fsol-gw01.home.foo.sh fsol-gw01.home.foo.sh
fsol-gw02.home.foo.sh fsol-gw02.home.foo.sh
@ -66,6 +69,7 @@ atl01.vultr.foo.sh
[centos8:children] [centos8:children]
adm adm
db
git git
mail mail
mirror mirror

24
playbooks/db.yml Normal file
View 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