Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Created September 19, 2024 16:20
Show Gist options
  • Save zeitounator/6f788d48afc547e3a2d07e5dd2f604f2 to your computer and use it in GitHub Desktop.
Save zeitounator/6f788d48afc547e3a2d07e5dd2f604f2 to your computer and use it in GitHub Desktop.
$ ansible localhost -e '{"bla": "test"}' -m debug -a "msg={{ bla | type_debug == 'list' }}"
localhost | SUCCESS => {
"msg": false
}
$ ansible localhost -e '{"bla": ["test1", "test2"]}' -m debug -a "msg={{ bla | type_debug == 'list' }}"
localhost | SUCCESS => {
"msg": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment