# STR requires that artifacts dir must be absent
- name: "Check if {{artifacts}} is absent at test-runner"
stat:
path: "{{artifacts}}"
register: st_tr
delegate_to: localhost
- fail:
msg: "Remove {{artifacts}} before test run at test-runner."
when: st_tr.stat.exists
- name: "Check if {{artifacts}} is absent at test-environment."
stat:
path: "{{remote_artifacts}}"
register: st_te
- fail:
msg: "Remove {{remote_artifacts}} before test run at test-environment."
when: st_te.stat.exists