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.
22 lines
498 B
YAML
22 lines
498 B
YAML
2 years ago
|
- hosts: testhost
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- name: test registering
|
||
|
debug: msg='does nothing really but register this'
|
||
|
register: debug_msg
|
||
|
|
||
|
- name: validate registering
|
||
|
assert:
|
||
|
that:
|
||
|
- debug_msg is defined
|
||
|
|
||
|
- name: test registering skipped
|
||
|
debug: msg='does nothing really but register this'
|
||
|
when: false
|
||
|
register: debug_skipped
|
||
|
|
||
|
- name: validate registering
|
||
|
assert:
|
||
|
that:
|
||
|
- debug_skipped is defined
|