-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1153 from moreati/issue1040
tests: Templated "remote_user" provided as Ansible playbook keyword
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/ansible/integration/ssh/templated_by_play_keyword.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- name: integration/ssh/templated_by_play_keyword.yml | ||
hosts: tt_targets_bare | ||
gather_facts: false | ||
remote_user: "{{ 'mitogen__has_sudo_nopw' | trim }}" | ||
vars: | ||
ansible_password: has_sudo_nopw_password | ||
ansible_port: "{{ hostvars[groups['test-targets'][0]].ansible_port | default(22) }}" | ||
tasks: | ||
- meta: reset_connection | ||
- name: Templated variables in play keywords | ||
ping: |