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