2023-01-02 00:41:41 +01:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
gather_facts: yes
|
|
|
|
roles:
|
|
|
|
- include_role:
|
|
|
|
name: remove_swap
|
|
|
|
- include_role:
|
|
|
|
name: kubernetes/any
|
|
|
|
- include_role:
|
2023-01-02 00:50:42 +01:00
|
|
|
name: kubernetes/control_plane
|
|
|
|
when: is_control_plane
|
2023-01-02 00:41:41 +01:00
|
|
|
- include_role:
|
|
|
|
name: kubernetes/node
|
2023-01-02 00:50:42 +01:00
|
|
|
when: not is_control_plane
|
2023-01-02 00:41:41 +01:00
|
|
|
|
2023-01-02 00:50:42 +01:00
|
|
|
# - hosts: control_plane
|
2023-01-02 00:41:41 +01:00
|
|
|
# gather_facts: yes
|
|
|
|
# become: yes
|
|
|
|
# tasks:
|
|
|
|
# - name: "MetalLB role"
|
|
|
|
# include_role:
|
|
|
|
# name: metallb
|
|
|
|
# when: "additional_features.metallb"
|
|
|
|
# run_once: yes
|
|
|
|
# tags: metallb
|