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.
49 lines
844 B
YAML
49 lines
844 B
YAML
11 years ago
|
---
|
||
|
- hosts: all
|
||
|
connection: local
|
||
|
gather_facts: False
|
||
|
vars:
|
||
|
var_true: True
|
||
|
var_false: False
|
||
|
var_empty_str: "''"
|
||
|
var_null: ~
|
||
|
|
||
|
tasks:
|
||
|
- action: command echo ping
|
||
|
always_run: yes
|
||
|
|
||
|
- action: command echo pong 1
|
||
|
|
||
|
- action: command echo pong 2
|
||
|
always_run: no
|
||
|
|
||
|
- action: command echo pong 3
|
||
|
always_run: 1 + 1
|
||
|
|
||
|
- action: command echo pong 4
|
||
|
always_run: "''"
|
||
|
|
||
|
- action: command echo pong 5
|
||
|
always_run: False
|
||
|
|
||
|
- action: command echo pong 6
|
||
|
always_run: True
|
||
|
|
||
|
- action: command echo pong 7
|
||
|
always_run: var_true
|
||
|
|
||
|
- action: command echo pong 8
|
||
|
always_run: var_false
|
||
|
|
||
|
- action: command echo pong 9
|
||
|
always_run: var_empty_str
|
||
|
|
||
|
- action: command echo pong 10
|
||
|
always_run: var_null
|
||
|
|
||
|
# this will never run...
|
||
|
- action: command echo pong 11
|
||
|
always_run: yes
|
||
|
when: no
|
||
|
|