274fea3f5f
* Fix nested noop block padding in dynamic includes (#38814)
* Fix nested noop block padding in dynamic includes
* Address issues from the review
* Fix typo
(cherry picked from commit 5dd8977cfa
)
* Add changelog/fragment for 38814
16 lines
388 B
YAML
16 lines
388 B
YAML
- hosts:
|
|
- testhost
|
|
- testhost2
|
|
gather_facts: no
|
|
vars:
|
|
secondhost: testhost2
|
|
tasks:
|
|
- name: Call the first role only on one host
|
|
include_role:
|
|
name: role1
|
|
when: inventory_hostname is match(secondhost)
|
|
|
|
- name: Make sure nothing else runs until role1 finishes
|
|
assert:
|
|
that:
|
|
- "'role1_complete' in hostvars[secondhost]"
|