Created
August 4, 2016 14:09
-
-
Save tszpinda/9af669f3c9c58fba43a55cc581bc24a5 to your computer and use it in GitHub Desktop.
ansible bits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible web -i hosts -m lineinfile -a 'dest='~/.bashrc' regexp='^' line="alias l=\"ls -l\"" state=present' | |
ansible web -i hosts -m shell -a 'ps auwx|egrep tomcat|egrep -v egrep'|egrep FAIL || echo '[PASS]' | |
version=10233 | |
ansible webapps -i hosts -m shell -a "curl localhost:8080/who.jsp|egrep $version"|egrep FAIL || echo '[PASS]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment