Skip to content

Commit 825a84a

Browse files
authored
Merge pull request #1153 from moreati/issue1040
tests: Templated "remote_user" provided as Ansible playbook keyword
2 parents 24e39b2 + 5d6a185 commit 825a84a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/ansible/integration/ssh/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
- import_playbook: password.yml
44
- import_playbook: timeouts.yml
55
- import_playbook: templated_by_inv.yml
6+
- import_playbook: templated_by_play_keyword.yml
67
- import_playbook: templated_by_play_taskvar.yml
78
- import_playbook: variables.yml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- name: integration/ssh/templated_by_play_keyword.yml
2+
hosts: tt_targets_bare
3+
gather_facts: false
4+
remote_user: "{{ 'mitogen__has_sudo_nopw' | trim }}"
5+
vars:
6+
ansible_password: has_sudo_nopw_password
7+
ansible_port: "{{ hostvars[groups['test-targets'][0]].ansible_port | default(22) }}"
8+
tasks:
9+
- meta: reset_connection
10+
- name: Templated variables in play keywords
11+
ping:

0 commit comments

Comments
 (0)