move all custom ansible roles to this repository
This commit is contained in:
parent
9191405067
commit
7e651545cd
21 changed files with 2217 additions and 21 deletions
20
legacy/ansible_roles/cloudinit_wait/tasks/main.yml
Normal file
20
legacy/ansible_roles/cloudinit_wait/tasks/main.yml
Normal file
|
@ -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:
|
Reference in a new issue