2015-02-26 16:51:12 +01:00
|
|
|
- hosts: localhost
|
|
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
|
|
- block:
|
|
|
|
- block:
|
|
|
|
- block:
|
|
|
|
- block:
|
2015-09-16 15:56:30 +02:00
|
|
|
- debug: msg="are we there yet {{foo}}?"
|
2015-03-25 19:51:40 +01:00
|
|
|
always:
|
|
|
|
- debug: msg="a random always block"
|
|
|
|
- fail:
|
|
|
|
rescue:
|
|
|
|
- debug: msg="rescuing from the fail"
|
2015-09-16 15:29:16 +02:00
|
|
|
when: not skip_me|default(False)
|
2015-09-16 15:56:30 +02:00
|
|
|
- debug: msg="i am the last task"
|
|
|
|
vars:
|
|
|
|
foo: bar
|