blob: 5de51eb804df4e1eaf10abc3a6691b7c6ed4d76c (
plain) (
tree)
|
|
- name: Wait until cloud-init is finished
ansible.builtin.stat:
path: '{{ cloud_init_wait_path }}'
# WTF? Is this the best way to _just_ check if a file exists?
get_attributes: false
get_checksum: false
get_mime: false
register: boot_finished
until: boot_finished.stat.exists is not false
# About 5 minutes worth of attempts.
retries: '{{ cloud_init_wait_seconds // cloud_init_wait_delay }}'
delay: '{{ cloud_init_wait_delay }}'
|