ansible-role-k8s/tasks/k3s/main.yml

23 lines
562 B
YAML
Raw Normal View History

2024-04-27 01:33:23 +00:00
---
# BOOTSTRAP
- name: k3s boostrap initial server node
ansible.builtin.shell: "{{ k8s_install_script }}"
environment: "{{ k8s_env }}"
2024-04-27 01:33:23 +00:00
when:
- k8s_node_type == "bootstrap"
# ADD SERVERS
- name: k3s add additional server nodes
ansible.builtin.shell: "{{ k8s_install_script }}"
environment: "{{ k8s_env }}"
2024-04-27 01:33:23 +00:00
when:
- k8s_node_type == "server"
# ADD AGENTS
- name: k3s add agent nodes
ansible.builtin.shell: "{{ k8s_install_script }}"
environment: "{{ k8s_env }}"
2024-04-27 01:33:23 +00:00
when:
- k8s_node_type == "agent"