Debian Codegraph @

test/integration/targets/connection_delegation/test.yml

raw
1 ---
2 - hosts: localhost
3 gather_facts: no
4 tasks:
5 - name: test connection receives -k from play_context when delegating
6 delegation_action:
7 delegate_to: my_host
8 register: result
9
10 - assert:
11 that:
12 - result.remote_password == 'my_password'
13
14 - name: ensure vars set for that host take precedence over -k
15 delegation_action:
16 delegate_to: my_host
17 vars:
18 ansible_password: other_password
19 register: result
20
21 - assert:
22 that:
23 - result.remote_password == 'other_password'