diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-10 17:50:50 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-10 19:30:13 +0200 |
commit | a86d828553d4d724d4ad3ca5335711b6bb1c0eb5 (patch) | |
tree | db7b9ae3803aec2f871c8ead356b9091a581c014 /roles/file_wait/tasks/main.yml | |
parent | cloud_init_wait: tolerate reboots (diff) | |
download | infra-ansible-a86d828553d4d724d4ad3ca5335711b6bb1c0eb5.tar.gz infra-ansible-a86d828553d4d724d4ad3ca5335711b6bb1c0eb5.zip |
cloud_init_wait: factor out to file_wait
Diffstat (limited to '')
-rw-r--r-- | roles/file_wait/tasks/main.yml | 7 |
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 |