Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Created August 3, 2021 07:50
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 zeitounator/2e88fa8e87119050c9d9e455dbaa4b53 to your computer and use it in GitHub Desktop.
Save zeitounator/2e88fa8e87119050c9d9e455dbaa4b53 to your computer and use it in GitHub Desktop.
$ ansible localhost -m debug -a "msg={{ multi_config | type_debug }}" -e '{"multi_config":{"aa":111,"bb":222,"cc":444}}'
localhost | SUCCESS => {
"msg": "dict"
}
$ ansible localhost -m debug -a var=multi_config -e '{"multi_config":{"aa":111,"bb":222,"cc":444}}'
localhost | SUCCESS => {
"multi_config": {
"aa": 111,
"bb": 222,
"cc": 444
}
}
$ ansible localhost -m debug -a "msg={{ a_list | type_debug }}" -e '{"a_list":[1, 2, "three", "four"]}'
localhost | SUCCESS => {
"msg": "list"
}
$ ansible localhost -m debug -a var=a_list -e '{"a_list":[1, 2, "three", "four"]}'
localhost | SUCCESS => {
"a_list": [
1,
2,
"three",
"four"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment