From f462019c8373d46db9acbb9b3eff73f687ed34c4 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 30 Aug 2019 14:13:34 -0500 Subject: [PATCH] Actually add Ansible files --- ansible.cfg | 5 +++++ hosts | 11 +++++++++++ master.yml | 4 ++++ roles/workstations.yml | 4 ++++ 4 files changed, 24 insertions(+) create mode 100644 ansible.cfg create mode 100644 hosts create mode 100644 master.yml create mode 100644 roles/workstations.yml 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