diff options
| author | luisgulo <luisgulo@gmail.com> | 2025-10-24 18:01:10 +0200 |
|---|---|---|
| committer | luisgulo <luisgulo@gmail.com> | 2025-10-24 18:01:10 +0200 |
| commit | 533e79ba959143f0459431a486bfb85c56c72ddc (patch) | |
| tree | 91974de1bbbdc4c51c76ed591fc5c6e02a3342b6 /examples/basic_conditions.yaml | |
| parent | 45019c81cfd0fc1d18dce18cdfd5f127c6d61073 (diff) | |
Releasing code version 1.8.0
Diffstat (limited to 'examples/basic_conditions.yaml')
| -rw-r--r-- | examples/basic_conditions.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/basic_conditions.yaml b/examples/basic_conditions.yaml new file mode 100644 index 0000000..655b800 --- /dev/null +++ b/examples/basic_conditions.yaml @@ -0,0 +1,15 @@ +hosts: localhost +parallelism: false + +tasks: + - name: Pausa si el host es localhost + module: wait + args: + seconds: 1 + condition: '[ "{{ name }}" = "localhost" ]' + + - name: Pausa solo si existe el archivo /tmp/flag.txt + module: wait + args: + seconds: 2 + condition: 'test -f /tmp/flag.txt' |
