mise au point solution

This commit is contained in:
2022-11-01 18:33:29 +01:00
parent 45f12dc83a
commit e464c238d5
3 changed files with 42 additions and 11 deletions

View File

@@ -4,14 +4,15 @@
tasks:
- name: send script
copy:
src: random.sh
dest: /tmp//random.sh
src: bad.sh
dest: /tmp//bad.sh
mode: 0750
- name: execute script
command: /tmp//random.sh
command: /tmp//bad.sh
register: result
failed_when: 2|string in result.stdout
ignore_errors: true
- name: display result
debug: