diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..70e9924 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,5 @@ +[defaults] +inventory = hosts +remote_user = root +private_key_file = ~/.ssh/ansible +deprecation_warnings = false diff --git a/hosts b/hosts new file mode 100644 index 0000000..06562dd --- /dev/null +++ b/hosts @@ -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: diff --git a/master.yml b/master.yml new file mode 100644 index 0000000..ea6584b --- /dev/null +++ b/master.yml @@ -0,0 +1,4 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +- import-playbook: roles/workstations.yml diff --git a/roles/workstations.yml b/roles/workstations.yml new file mode 100644 index 0000000..1df066b --- /dev/null +++ b/roles/workstations.yml @@ -0,0 +1,4 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +- hosts: vms