1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Test include role with items in name #36372 (#37001)

* Tests for #36372

* Tests for #36372

* Tests for #36372
This commit is contained in:
Im0 2018-03-21 07:39:16 +11:00 committed by Matt Martz
parent 09325b619e
commit 8c4f349743
3 changed files with 9 additions and 1 deletions

View file

@ -47,12 +47,18 @@
- name: Test role include with a loop
include_role:
name: "{{ item }}"
register: loop_test
with_items:
- role1
- role3
- role2
- name: Assert that roles run with_items
assert:
that:
- _role1_result.msg == 'In role1'
- _role2_result.msg == 'In role2'
- _role3_result.msg == 'In role3'
- name: Test including a task file from a role
include_role:
name: role1

View file

@ -1,2 +1,3 @@
- debug:
msg: In role2
register: _role2_result

View file

@ -1,2 +1,3 @@
- debug:
msg: In role3
register: _role3_result