From c82c6eb42d14166087cf274caf32302a53814d29 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Fri, 3 May 2019 08:23:42 -0700 Subject: [PATCH] Updated cfg and added a ansible-pull script cfg now knows the default location to look for the inventory. Should have made that change long ago. Added a script to add all of my ansible-pull commands incase they need to be added back in to a new host. --- ansible.cfg | 2 +- scripts/ansiblepull.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 scripts/ansiblepull.sh diff --git a/ansible.cfg b/ansible.cfg index 8b184d5..9301b00 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -11,7 +11,7 @@ # some basic default values... -inventory = ~/.ansible/hosts +inventory = ~/hosts library = /usr/share/my_modules/ module_utils = /usr/share/my_module_utils/ remote_tmp = ~/.ansible/tmp diff --git a/scripts/ansiblepull.sh b/scripts/ansiblepull.sh new file mode 100644 index 0000000..b3d2f2b --- /dev/null +++ b/scripts/ansiblepull.sh @@ -0,0 +1,11 @@ + +# Script file to enable all of my ansible-pull commands. +# Used for documentation and rebuilding if needed + +# Notes +# -o command will only run the playbook when changes take place. + +$REPO = 'https://github.com/luther38/ansible.git' + +# This pb will tell all linux hosts to configure auto install of security updates +ansible-pull -U REPO -o playbook/linux/auto-securityupdates.yml