mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
438 B
YAML
18 lines
438 B
YAML
4 years ago
|
- 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
|