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.
This commit is contained in:
James Tombleson 2019-05-03 08:23:42 -07:00
parent b72ee6c6d1
commit c82c6eb42d
2 changed files with 12 additions and 1 deletions

View File

@ -11,7 +11,7 @@
# some basic default values... # some basic default values...
inventory = ~/.ansible/hosts inventory = ~/hosts
library = /usr/share/my_modules/ library = /usr/share/my_modules/
module_utils = /usr/share/my_module_utils/ module_utils = /usr/share/my_module_utils/
remote_tmp = ~/.ansible/tmp remote_tmp = ~/.ansible/tmp

11
scripts/ansiblepull.sh Normal file
View File

@ -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