ansible_stdout_compact_logger
ansible_stdout_compact_logger copied to clipboard
Debug message does not display when in a loop
The "debug" module does not display anything when in a loop. Example:
- hosts: all gather_facts: False tasks: - name: message loop debug: msg: "Hello {{item}}" with_items: - alice - bob
displays:
[16:20:18] message loop | some_host | SUCCESS | 45ms { - msg: All items completed }
We should see something like this:
ok: [localhost] => (item=alice) => {
"msg": "Hello alice"
}
ok: [localhost] => (item=bob) => {
"msg": "Hello bob"
}
ok: [127.0.0.1] => (item=alice) => {
"msg": "Hello alice"
}
ok: [127.0.0.1] => (item=bob) => {
"msg": "Hello bob"
}
Yes, but we don't...
I need this as well.
Could you try the content of branch octplane/debug-loop-display
?
Hi, I've same problem. I've tried with content of branch octplane/debug-loop-display without success.
(tested on ansible 2.9.2)
Hi, I've the same problem. ansible 2.9.6 python version = 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
Hello people,
I have pushed a fix:
- You can either call
ansible-playbook
with-vv
- Or add
dump_loop_items = True
toansible.cfg
The playbook test-18.yml
is a test-case

Just in time 😃 Thank you!