Debian Codegraph @

ansible_collections/containers/podman/tests/integration/targets/connection/test_connection.yml

raw
1 - hosts: "{{ target_hosts }}"
2 gather_facts: false
3 serial: 1
4 tasks:
5
6 ### raw with unicode arg and output
7
8 - name: raw with unicode arg and output
9 raw: echo 汉语
10 register: command
11 - name: check output of raw with unicode arg and output
12 assert:
13 that:
14 - "'汉语' in command.stdout"
15 - command is changed # as of 2.2, raw should default to changed: true for consistency w/ shell/command/script modules
16
17 ### copy local file with unicode filename and content
18
19 - name: create local file with unicode filename and content
20 local_action: lineinfile dest={{ local_tmp }}-汉语/汉语.txt create=true line=汉语
21 - name: remove remote file with unicode filename and content
22 action: "{{ action_prefix }}file path={{ remote_tmp }}-汉语/汉语.txt state=absent"
23 - name: create remote directory with unicode name
24 action: "{{ action_prefix }}file path={{ remote_tmp }}-汉语 state=directory"
25 - name: copy local file with unicode filename and content
26 action: "{{ action_prefix }}copy src={{ local_tmp }}-汉语/汉语.txt dest={{ remote_tmp }}-汉语/汉语.txt"
27
28 ### fetch remote file with unicode filename and content
29
30 - name: remove local file with unicode filename and content
31 local_action: file path={{ local_tmp }}-汉语/汉语.txt state=absent
32 - name: fetch remote file with unicode filename and content
33 fetch: src={{ remote_tmp }}-汉语/汉语.txt dest={{ local_tmp }}-汉语/汉语.txt fail_on_missing=true validate_checksum=true flat=true
34
35 ### remove local and remote temp files
36
37 - name: remove local temp file
38 local_action: file path={{ local_tmp }}-汉语 state=absent
39 - name: remove remote temp file
40 action: "{{ action_prefix }}file path={{ remote_tmp }}-汉语 state=absent"
41
42 ### test wait_for_connection plugin
43 - wait_for_connection: