14 lines
346 B
YAML
14 lines
346 B
YAML
- name: Unarchive
|
|
copy:
|
|
src: archive.tar
|
|
dest: /opt/unarchive-dest
|
|
delegate_to: "{{ item }}"
|
|
register: result
|
|
ignore_errors: true
|
|
|
|
- assert:
|
|
that:
|
|
- "result.failed == true"
|
|
- "'Accessing files from outside the working dir' in result.msg"
|
|
msg: Unarchive must fail due to accessing files outside the working dir
|