Debian Codegraph @

test/integration/targets/roles/no_dupes.yml

raw
1 - name: play should only show 1 invocation of a, as dependencies in this play are deduped
2 hosts: testhost
3 gather_facts: false
4 tags: [ 'inroles' ]
5 roles:
6 - role: a
7 - role: b
8 - role: c
9
10 - name: play should only show 1 invocation of a, as dependencies in this play are deduped even outside of roles
11 hosts: testhost
12 gather_facts: false
13 tags: [ 'acrossroles' ]
14 roles:
15 - role: a
16 - role: b
17 tasks:
18 - name: execute role c which depends on a
19 import_role: name=c
20
21 - name: play should only show 1 invocation of a, as dependencies in this play are deduped by include_role
22 hosts: testhost
23 gather_facts: false
24 tags: [ 'intasks' ]
25 tasks:
26 - name: execute role b which depends on a
27 include_role: name=b
28 - name: execute role c which also depends on a
29 include_role: name=c