Add devel01.home.foo.sh host for dev purposes
This host is intended for development purposes and is not included in default playbooks. Start with: ansible-playbook playbooks/devel.yml -i hosts.devel
This commit is contained in:
parent
9532fa165e
commit
026e077fc7
3 changed files with 24 additions and 0 deletions
6
host_vars/devel01.home.foo.sh.yml
Normal file
6
host_vars/devel01.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:de:0b
|
5
hosts.devel
Normal file
5
hosts.devel
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[devel]
|
||||||
|
devel01.home.foo.sh
|
||||||
|
|
||||||
|
[centos8:children]
|
||||||
|
devel
|
13
playbooks/devel.yml
Normal file
13
playbooks/devel.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- import_playbook: "include/vm-create.yml myhosts=devel01.home.foo.sh"
|
||||||
|
|
||||||
|
- name: configure instance
|
||||||
|
hosts: devel01.home.foo.sh
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "{{ ansible_private }}/vars.yml"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
Loading…
Add table
Reference in a new issue