summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_import/test_include_loop_fqcn.yml
blob: 62d91f227d5d9792ecf3cb08b17977282cda2a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- hosts: localhost
  gather_facts: false
  tasks:
    - name: skipped include undefined loop
      ansible.builtin.include_tasks: doesnt_matter.yml
      loop: '{{ lkjsdflkjsdlfkjsdlfkjsdf }}'
      when: false
      register: skipped_include

    - debug:
        var: skipped_include

    - assert:
        that:
          - skipped_include.results is undefined
          - skipped_include.skip_reason is defined
          - skipped_include is skipped