Printing register variable

try putting -vvv to ansible-playbook command line

  • Benno Joy

Just one will suffice (-v), I’ll probably add a print by default option to the debug module.

Thanks, that worked. Is there a way to dump the variable foo to inspect all of it’s contents something like php’s var_dump or python’s pprint?

Assuming 1.2 is available

tasks:

  • debug: msg=“{{ foo }}”

else:

tasks:

  • debug: msg=${foo}

Wwww

in 1.2 {{foo|pprint}} also to_nice_yaml and to_nice_json are available