2020-04-29 16:08:25 +00:00
|
|
|
---
|
|
|
|
- name: Prepare
|
|
|
|
hosts: all
|
|
|
|
gather_facts: False
|
2021-10-20 15:47:58 +00:00
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
ignore_assert_errors: true
|
2020-04-29 16:08:25 +00:00
|
|
|
roles:
|
2021-10-20 15:47:58 +00:00
|
|
|
- role: kubespray-defaults
|
2020-04-29 16:08:25 +00:00
|
|
|
- role: bootstrap-os
|
2021-12-03 20:20:35 +00:00
|
|
|
- role: kubernetes/preinstall
|
|
|
|
- role: adduser
|
|
|
|
user: "{{ addusers.kube }}"
|
|
|
|
tasks:
|
|
|
|
- include_tasks: "../../../../download/tasks/download_file.yml"
|
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.cni) }}"
|
|
|
|
|
|
|
|
- name: Prepare CNI
|
|
|
|
hosts: all
|
|
|
|
gather_facts: False
|
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
ignore_assert_errors: true
|
|
|
|
kube_network_plugin: cni
|
|
|
|
roles:
|
|
|
|
- role: kubespray-defaults
|
|
|
|
- role: network_plugin/cni
|