Debian Codegraph @

test/integration/targets/connection_remote_is_local/tasks/main.yml

raw
1 - command: ansible-playbook {{ role_path }}/test.yml -vvv -i {{ '-i '.join(ansible_inventory_sources) }}
2 environment:
3 ANSIBLE_REMOTE_TEMP: /i/dont/exist
4 ANSIBLE_NOCOLOR: 'true'
5 register: result
6
7 - assert:
8 that:
9 - >-
10 result.stdout is search('PUT ' ~ ansible_local ~ ' TO ' ~ ansible_local)
11 - >-
12 '/i/dont/exist' not in result.stdout
13 vars:
14 local_tmp: '{{ q("config", "remote_tmp", plugin_type="shell", plugin_name="sh")|first|expanduser|realpath }}'
15 ansible_local: '{{ local_tmp }}/ansible-local-\S+'