Add nas02.home.foo.sh host
This commit is contained in:
parent
f920c8f09a
commit
9a2cd1e646
4 changed files with 33 additions and 0 deletions
9
group_vars/nas.yml
Normal file
9
group_vars/nas.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
mem_size: 4096
|
||||
num_cpus: 2
|
||||
datadisks:
|
||||
- 1000
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
6
host_vars/nas02.home.foo.sh
Normal file
6
host_vars/nas02.home.foo.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost02.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:34
|
4
hosts
4
hosts
|
@ -20,6 +20,9 @@ ldap02.home.foo.sh
|
|||
[log]
|
||||
log01.home.foo.sh
|
||||
|
||||
[nas]
|
||||
nas02.home.foo.sh
|
||||
|
||||
[ns]
|
||||
ns02.home.foo.sh
|
||||
atl01.vultr.foo.sh
|
||||
|
@ -36,6 +39,7 @@ atl01.vultr.foo.sh
|
|||
|
||||
[centos8:children]
|
||||
adm
|
||||
nas
|
||||
vmhost
|
||||
|
||||
[centos7:children]
|
||||
|
|
14
playbooks/nas.yml
Normal file
14
playbooks/nas.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=nas"
|
||||
|
||||
- name: configure instance
|
||||
hosts: nas
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- zfs
|
Loading…
Add table
Reference in a new issue