Last active
July 27, 2020 06:17
-
-
Save blitzblade/8277d60b97f533c9de00459e16e6ab7e to your computer and use it in GitHub Desktop.
ansible
This file contains 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
ping a group of servers called taapp: | |
ansible -i hosts taapp -m ping | |
run command, load from inventory: | |
ansible -i inventory all -m command -a "iptables -F" --become | |
send "ls" command to group taapp: | |
ansible taapp -m command -a "ls" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment