Merge pull request #1153 from moreati/issue1040

tests: Templated "remote_user" provided as Ansible playbook keyword
pull/1154/head
Alex Willmer 2 months ago committed by GitHub
commit 825a84a0d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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:
Loading…
Cancel
Save