Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created December 4, 2019 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/10817de41ab35386410cad8f5e3ae43a to your computer and use it in GitHub Desktop.
Save ziadoz/10817de41ab35386410cad8f5e3ae43a to your computer and use it in GitHub Desktop.
Run Ansible Playbook Against Host
# Replace [IP], [USER], [KEY] and [PLAYBOOK]
# Comma after IP address is required, otherwise the command won't work.
ansible-playbook -i [IP], --user=[USER] --private-key=[KEY] [PLAYBOOK]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment