summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_import/apply/include_apply.yml
blob: 32c6e5e9f0d00d40b20c830cce3fb2c029899916 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- hosts: testhost
  gather_facts: false
  tasks:
    - include_tasks:
        file: include_tasks.yml
        apply:
          tags:
            - foo
      tags:
        - always

    - assert:
        that:
          - include_tasks_result is defined
      tags:
        - always

    - include_role:
        name: include_role
        apply:
          tags:
            - foo
      tags:
        - always

    - assert:
        that:
          - include_role_result is defined
      tags:
        - always

    - include_role:
        name: include_role2
        apply:
          tags:
            - foo
      tags:
        - not_specified_on_purpose

    - assert:
        that:
          - include_role2_result is undefined
      tags:
        - always

    - include_role:
        name: include_role
        apply:
          delegate_to: testhost2