From 533e79ba959143f0459431a486bfb85c56c72ddc Mon Sep 17 00:00:00 2001 From: luisgulo Date: Fri, 24 Oct 2025 18:01:10 +0200 Subject: Releasing code version 1.8.0 --- examples/basic_conditions.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/basic_conditions.yaml (limited to 'examples/basic_conditions.yaml') 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' -- cgit v1.2.3