Skip to content

Instantly share code, notes, and snippets.

@parberge
Created October 7, 2016 07:39
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 parberge/667564ace277b88ecc66e9c825f97547 to your computer and use it in GitHub Desktop.
Save parberge/667564ace277b88ecc66e9c825f97547 to your computer and use it in GitHub Desktop.
$ ansible --version
ansible 2.1.2.0
[..]
$ head -n1 inventory
test-host ansible_host=127.0.0.1 test_var=1
$ ansible -m debug -a "var=test_var" -i inventory test-host
test-host | SUCCESS => {
"test_var": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment