mise au point solution
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user