Actually add Ansible files
This commit is contained in:
parent
d62b322642
commit
f462019c83
5
ansible.cfg
Normal file
5
ansible.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = hosts
|
||||||
|
remote_user = root
|
||||||
|
private_key_file = ~/.ssh/ansible
|
||||||
|
deprecation_warnings = false
|
11
hosts
Normal file
11
hosts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
children:
|
||||||
|
vms:
|
||||||
|
hosts:
|
||||||
|
192.168.122.134
|
||||||
|
workstations:
|
||||||
|
hosts:
|
||||||
|
192.168.1.8
|
||||||
|
192.168.1.21
|
||||||
|
# vim:ft=ansible:
|
4
master.yml
Normal file
4
master.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- import-playbook: roles/workstations.yml
|
4
roles/workstations.yml
Normal file
4
roles/workstations.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- hosts: vms
|
Loading…
Reference in New Issue
Block a user