Debian Codegraph @

test/integration/targets/connection_ssh/test_escalation_check.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 vars:
4 ansible_connection: ssh
5 ansible_ssh_timeout: 3
6 ansible_sftp_extra_args: -S ssh
7 output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
8 tasks:
9 - name: Test that escalation path is handled correctly
10 block:
11 - copy:
12 content: hello
13 dest: "{{ output_dir }}/file"
14 become: true
15 always:
16 - file:
17 path: "{{ output_dir }}/file"
18 state: absent