aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/file_wait/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/file_wait/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/file_wait/tasks/main.yml b/roles/file_wait/tasks/main.yml
new file mode 100644
index 0000000..76dce68
--- /dev/null
+++ b/roles/file_wait/tasks/main.yml
@@ -0,0 +1,7 @@
+- name: Checking if the file exists
+ ansible.builtin.include_tasks: check.yml
+
+- name: Fail unless the file exists
+ ansible.builtin.fail:
+ msg: 'File is missing: {{ file_wait_path }}'
+ when: file_wait_check is not defined or file_wait_check is not succeeded or file_wait_check is unreachable