mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
31dd75de59
* delegate_to rudimentary support (still needs much more work) * lots of other things
17 lines
437 B
YAML
17 lines
437 B
YAML
- hosts: localhost
|
|
connection: local
|
|
gather_facts: no
|
|
tasks:
|
|
- block:
|
|
- command: /bin/false
|
|
- debug: msg="you shouldn't see me"
|
|
rescue:
|
|
- debug: msg="this is the rescue"
|
|
- command: /bin/false
|
|
- debug: msg="you shouldn't see this either"
|
|
always:
|
|
- debug: msg="this is the always block, it will always be seen"
|
|
when: foo|default('') != "some value"
|
|
tags:
|
|
- foo
|
|
- bar
|