ansible/playbooks/kubernetes/playbook.yaml

27 lines
595 B
YAML

---
- hosts: all
gather_facts: yes
roles:
- include_role:
name: install_system_tools
- include_role:
name: remove_swap
- include_role:
name: kubernetes/any
- include_role:
name: kubernetes/control_plane
when: is_control_plane
- include_role:
name: kubernetes/node
when: not is_control_plane
# - hosts: control_plane
# gather_facts: yes
# become: yes
# tasks:
# - name: "MetalLB role"
# include_role:
# name: metallb
# when: "additional_features.metallb"
# run_once: yes
# tags: metallb