mirror of https://github.com/ansible/ansible.git
Add test for meta: end_play (#59118)
- Set ansible_python_interpreter for hosts using local connectionpull/59150/head
parent
e8a7d89180
commit
d17e7a91b1
@ -1,3 +0,0 @@
|
||||
[local]
|
||||
testhost ansible_connection=local host_var_role_name=role3
|
||||
testhost2 ansible_connection=local host_var_role_name=role2
|
@ -0,0 +1,9 @@
|
||||
local:
|
||||
hosts:
|
||||
testhost:
|
||||
host_var_role_name: role3
|
||||
testhost2:
|
||||
host_var_role_name: role2
|
||||
vars:
|
||||
ansible_connection: local
|
||||
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
@ -0,0 +1,12 @@
|
||||
- name: Testing end_play with strategy {{ test_strategy | default('linear') }}
|
||||
hosts: testhost:testhost2
|
||||
gather_facts: no
|
||||
strategy: "{{ test_strategy | default('linear') }}"
|
||||
tasks:
|
||||
- debug:
|
||||
msg: "Testing end_play on host {{ inventory_hostname }}"
|
||||
|
||||
- meta: end_play
|
||||
|
||||
- fail:
|
||||
msg: 'Failed to end using end_play'
|
Loading…
Reference in New Issue