Skip to content

Commit

Permalink
Merge pull request #1153 from moreati/issue1040
Browse files Browse the repository at this point in the history
tests: Templated "remote_user" provided as Ansible playbook keyword
  • Loading branch information
moreati authored Oct 9, 2024
2 parents 24e39b2 + 5d6a185 commit 825a84a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/ansible/integration/ssh/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
- import_playbook: password.yml
- import_playbook: timeouts.yml
- import_playbook: templated_by_inv.yml
- import_playbook: templated_by_play_keyword.yml
- import_playbook: templated_by_play_taskvar.yml
- import_playbook: variables.yml
11 changes: 11 additions & 0 deletions tests/ansible/integration/ssh/templated_by_play_keyword.yml
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:

0 comments on commit 825a84a

Please sign in to comment.