Debian Codegraph @

test/integration/targets/copy/tasks/invocation.yml

raw
1 - copy:
2 content: blah {{ lookup('pipe', 'date') }}
3 dest: '{{ local_temp_dir }}/copytmp.txt'
4 loop: [true, false]
5 vars:
6 ansible_inject_invocation: '{{ item }}'
7 register: copyout
8
9 - debug:
10 var: copyout
11
12 - assert:
13 that:
14 - copyout.results[0].invocation is defined
15 - copyout.results[1].invocation is not defined