Created
August 3, 2021 07:50
-
-
Save zeitounator/2e88fa8e87119050c9d9e455dbaa4b53 to your computer and use it in GitHub Desktop.
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
$ 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