File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
tests/ansible/integration/ssh Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 55- import_playbook : templated_by_inv.yml
66- import_playbook : templated_by_play_keyword.yml
77- import_playbook : templated_by_play_taskvar.yml
8+ - import_playbook : templated_by_task_keyword.yml
89- import_playbook : variables.yml
Original file line number Diff line number Diff line change 1+ - name : integration/ssh/templated_by_task_keyword.yml
2+ hosts : tt_targets_bare
3+ gather_facts : false
4+ # FIXME Resetting the connection shouldn't require credentials
5+ # https://github.com/mitogen-hq/mitogen/issues/1132
6+ remote_user : " {{ 'mitogen__has_sudo_nopw' | trim }}"
7+ vars :
8+ ansible_password : has_sudo_nopw_password
9+ ansible_port : " {{ hostvars[groups['test-targets'][0]].ansible_port | default(22) }}"
10+ tasks :
11+ - name : Reset connection to target that will be delegate_to
12+ meta : reset_connection
13+
14+ - name : Test connection template by task keywords, with delegate_to
15+ hosts : test-targets[0]
16+ gather_facts : false
17+ tasks :
18+ - name : Templated by task keywords, with delegate_to
19+ delegate_to : " {{ groups.tt_targets_bare[0] }}"
20+ remote_user : " {{ 'mitogen__has_sudo_nopw' | trim }}"
21+ vars :
22+ ansible_password : has_sudo_nopw_password
23+ ansible_port : " {{ hostvars[groups['test-targets'][0]].ansible_port | default(22) }}"
24+ ping :
You can’t perform that action at this time.
0 commit comments