ansible/test/integration/targets/include_import/test_include_loop.yml
Matt Martz 4e27569347
Add more include and yaml parsing tests ()
These additional tests should provide coverage for features currently tested by the postgres incidental tests.
2020-08-04 11:24:52 -07:00

17 lines
438 B
YAML

- hosts: localhost
gather_facts: false
tasks:
- name: skipped include undefined loop
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