Skip to content

Commit

Permalink
tests: Templated "port" provided as Ansible playbook keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed Oct 9, 2024
1 parent 825a84a commit 887b41f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- name: integration/ssh/templated_by_play_keyword.yml
hosts: tt_targets_bare
gather_facts: false
port: "{{ hostvars[groups['test-targets'][0]].ansible_port | default(22) }}"
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
Expand Down

0 comments on commit 887b41f

Please sign in to comment.