2020-04-30 00:08:25 +08:00
|
|
|
---
|
|
|
|
- name: Prepare
|
|
|
|
hosts: all
|
2024-08-28 13:30:56 +08:00
|
|
|
gather_facts: false
|
2021-10-20 23:47:58 +08:00
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
ignore_assert_errors: true
|
2020-04-30 00:08:25 +08:00
|
|
|
roles:
|
2021-10-20 23:47:58 +08:00
|
|
|
- role: kubespray-defaults
|
2020-04-30 00:08:25 +08:00
|
|
|
- role: bootstrap-os
|
2021-12-04 04:20:35 +08:00
|
|
|
- role: kubernetes/preinstall
|
|
|
|
- role: adduser
|
|
|
|
user: "{{ addusers.kube }}"
|
|
|
|
tasks:
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Download CNI
|
|
|
|
include_tasks: "../../../../download/tasks/download_file.yml"
|
2021-12-04 04:20:35 +08:00
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.cni) }}"
|
|
|
|
|
|
|
|
- name: Prepare CNI
|
|
|
|
hosts: all
|
2024-08-28 13:30:56 +08:00
|
|
|
gather_facts: false
|
2021-12-04 04:20:35 +08:00
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
ignore_assert_errors: true
|
|
|
|
kube_network_plugin: cni
|
|
|
|
roles:
|
|
|
|
- role: kubespray-defaults
|
|
|
|
- role: network_plugin/cni
|