Compare commits

...

4 Commits

Author SHA1 Message Date
8404ab46cd fail when rs=2 2023-02-19 17:28:36 +01:00
b895e08049 mise au point 2022-11-17 09:37:55 +01:00
98149b2754 random.sh now returns random code 2022-11-16 16:30:52 +01:00
6bc58187c9 random.sh now returns random code 2022-11-16 16:28:06 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -8,9 +8,9 @@
mode: 0750
- name: execute script
command: /tmp//random.sh
command: /tmp/random.sh
register: result
failed_when: 2|string in result.stdout
failed_when: result.rc==2
- name: display result
debug:

View File

@@ -2,4 +2,4 @@
# return a random number between 0 and 2
echo $(( $RANDOM % 3 ))
exit $(( $RANDOM % 3 ))