Changes

Jump to: navigation, search

ReleaseEngineering/How To/Use Ansible for AdHoc Updates

362 bytes added, 16:40, 19 January 2015
how to run checkconfig
From the same, local, directory as somescript.sh: <code>ansible -u root -i ec2-inventory.py -m script -a ./somescript.sh tst-linux64</code>
 
==Run checkconfig:==
 
<code>ansible-playbook -i master-inventory.py checkconfig.yml</code>
 
To limit this to certain hosts or classes you can do this:
 
<code>ansible-playbook -i master-inventory.py checkconfig.yml -l build</code>
 
To see which hosts would be impacted:
 
<code>ansible-playbook -i master-inventory.py checkconfig.yml --list-hosts -l build</code>
Confirm
2,456
edits

Navigation menu