commit 1e1c911e13e8db61e260b0f2328be3e6525b5d7a Author: Pim Kunis Date: Fri Apr 14 09:28:34 2023 +0200 init diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..2ac30c8 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,20 @@ +--- + +- name: Wait for SSH connection + wait_for: + state: started + port: 22 + host: "{{ ansible_host }}" + timeout: 300 + connect_timeout: 300 + search_regex: OpenSSH + delegate_to: localhost + +- name: Wait for cloud-init to finish + shell: + cmd: "cloud-init status --wait" + register: cloudinit + changed_when: "'.' in cloudinit.stdout" + +- name: Gather facts + setup: