mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 10:43:14 +00:00
Verify playbook includes can take params.
This commit is contained in:
@@ -1 +1 @@
|
||||
- include: test_includes2.yml
|
||||
- include: test_includes2.yml parameter1=asdf parameter2=jkl
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
|
||||
- hosts: testhost
|
||||
- name: verify playbook includes can take parameters
|
||||
hosts: testhost
|
||||
tasks:
|
||||
- assert:
|
||||
that:
|
||||
- "parameter1 == 'asdf'"
|
||||
- "parameter2 == 'jkl'"
|
||||
|
||||
- name: verify task include logic
|
||||
hosts: testhost
|
||||
gather_facts: True
|
||||
roles:
|
||||
- { role: test_includes, tags: test_includes }
|
||||
|
||||
Reference in New Issue
Block a user