aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/cloud_init_wait/tasks/main.yml
blob: 4a69f60ba729a9ec41989a597f85d30c0f112185 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                 
- name: Wait until cloud-init is finished
  ansible.builtin.stat:
    path: /var/lib/cloud/instance/boot-finished
    # 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: 30
  delay: 10