mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
49 lines
844 B
YAML
49 lines
844 B
YAML
|
---
|
||
|
- 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
|
||
|
|