summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/roles/no_dupes.yml
blob: 7e1ecb15103f6cb598b042e61d9c363e7b8755d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- name: play should only show 1 invocation of a, as dependencies in this play are deduped
  hosts: testhost
  gather_facts: false
  tags: [ 'inroles' ]
  roles:
    - role: a
    - role: b
    - role: c

- name: play should only show 1 invocation of a, as dependencies in this play are deduped even outside of roles
  hosts: testhost
  gather_facts: false
  tags: [ 'acrossroles' ]
  roles:
    - role: a
    - role: b
  tasks:
    - name: execute role c which depends on a
      import_role: name=c

- name: play should only show 1 invocation of a, as dependencies in this play are deduped by include_role
  hosts: testhost
  gather_facts: false
  tags: [ 'intasks' ]
  tasks:
    - name: execute role b which depends on a
      include_role: name=b
    - name: execute role c which also depends on a
      include_role: name=c