aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/cloud_init_wait/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-10 17:50:50 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-10 19:30:13 +0200
commita86d828553d4d724d4ad3ca5335711b6bb1c0eb5 (patch)
treedb7b9ae3803aec2f871c8ead356b9091a581c014 /roles/cloud_init_wait/tasks/main.yml
parentcloud_init_wait: tolerate reboots (diff)
downloadinfra-ansible-a86d828553d4d724d4ad3ca5335711b6bb1c0eb5.tar.gz
infra-ansible-a86d828553d4d724d4ad3ca5335711b6bb1c0eb5.zip
cloud_init_wait: factor out to file_wait
Diffstat (limited to '')
-rw-r--r--roles/cloud_init_wait/tasks/main.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/cloud_init_wait/tasks/main.yml b/roles/cloud_init_wait/tasks/main.yml
index dec4162..22c258d 100644
--- a/roles/cloud_init_wait/tasks/main.yml
+++ b/roles/cloud_init_wait/tasks/main.yml
@@ -1,5 +1,5 @@
-- ansible.builtin.include_tasks: check.yml
-
-- ansible.builtin.fail:
- msg: Failed to wait until cloud-init is done
- when: boot_finished is not defined or boot_finished is not succeeded
+- ansible.builtin.include_role:
+ name: file_wait
+ vars:
+ file_wait_path: '{{ cloud_init_wait_path }}'
+ file_wait_seconds: '{{ cloud_init_wait_seconds }}'