1
0
mirror of https://github.com/jcwimer/multi-cloud-kubernetes synced 2026-03-24 17:34:43 +00:00
Files

37 lines
1.0 KiB
YAML

---
- name: Wait for ssh and cloud-init
hosts: "masters,workers"
user: debian
gather_facts: false
serial: 100%
vars:
ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
tasks:
- name: Wait 600 seconds for target connection to become reachable/usable
wait_for_connection:
timeout: 600
- name: Wait for cloud init to finish
cloud_init_data_facts:
filter: status
register: res
until: "res.cloud_init_data_facts.status.v1.stage is defined and not res.cloud_init_data_facts.status.v1.stage"
retries: 20
delay: 60
- name: Install kubernetes with rke
hosts: "masters,workers"
user: debian
gather_facts: true
serial: 100%
vars:
ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
roles:
- role: ../roles/kubernetes
vars:
longhorn_enabled: true
standard_user: debian
- role: ../roles/longhorn
vars:
longhorn_enabled: true
standard_user: debian