Printing lines separately can be done like- name: Run database migrationscommand: env/bin/python migrate.py -q chdir=$project_dir/releases/$release_dateregister: resultchanged_when: result.stdout_lines- debug: msg="{{item}}"with_items: result.stdout_lineswhen: result.stdout_lines
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Easiest way to debug this is just to use "-v" and it will output the previous data.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Yep, we don't export random functions here."{{ }}" is a call for string templating, it is not a place to insert arbitrary python code.You wouldn't want os.unlink() in there either! :)
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Did anything ever come of this? I would really like to be able to print friendly "Provisioning succeeded! Here's what to do next..." messages at the end of some of my playbooks.
I met the same issue... It's year 2022 already, did you get any solution? thanks.