Add zm01 host and related group
This commit is contained in:
parent
f2ea5bbae0
commit
83bb469927
4 changed files with 42 additions and 0 deletions
8
group_vars/zm.yml
Normal file
8
group_vars/zm.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
datadisks:
|
||||
- 100
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}
|
6
host_vars/zm02.home.foo.sh.yml
Normal file
6
host_vars/zm02.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:4c"
|
4
hosts
4
hosts
|
@ -64,6 +64,9 @@ static02.home.foo.sh
|
|||
vmhost01.home.foo.sh
|
||||
vmhost02.home.foo.sh
|
||||
|
||||
[zm]
|
||||
zm02.home.foo.sh
|
||||
|
||||
[vultr]
|
||||
atl01.vultr.foo.sh
|
||||
|
||||
|
@ -80,6 +83,7 @@ print
|
|||
shell
|
||||
static
|
||||
vmhost
|
||||
zm
|
||||
|
||||
[centos7:children]
|
||||
ldap
|
||||
|
|
24
playbooks/zm.yml
Normal file
24
playbooks/zm.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=zm"
|
||||
|
||||
- name: configure instance
|
||||
hosts: zm
|
||||
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