Skip to content

Instantly share code, notes, and snippets.

@blitzblade
Last active July 27, 2020 06:17
Show Gist options
  • Save blitzblade/8277d60b97f533c9de00459e16e6ab7e to your computer and use it in GitHub Desktop.
Save blitzblade/8277d60b97f533c9de00459e16e6ab7e to your computer and use it in GitHub Desktop.
ansible
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