summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_import/test_grandparent_inheritance_fqcn.yml
blob: 37a0ad0d6a61fdfd6951fd27924aa2c2f03b49cb (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
---
- hosts: testhost
  gather_facts: false
  tasks:
    - debug:
        var: inventory_hostname

    - name: Test included tasks inherit from block
      check_mode: true
      block:
        - ansible.builtin.include_tasks: grandchild/block_include_tasks.yml

    - debug:
        var: block_include_result

    - assert:
        that:
          - block_include_result is skipped

    - name: Test included tasks inherit deeply from import
      ansible.builtin.import_tasks: grandchild/import.yml
      check_mode: true

    - debug:
        var: import_include_include_result

    - assert:
        that:
          - import_include_include_result is skipped