Files
k3s-ansible/site.yml
Michael Skrynski fd7c9239b5 Update docs and roles for agent on all nodes
- Switch compute-blade-agent deployment from workers to all nodes
  (control-plane and workers)
- Use /usr/bin/compute-blade-agent instead of /usr/local/bin
- Update verification scripts to reference /usr/bin/compute-blade-agent
- Update docs to refer to all nodes across Deployment Guide, Checklist,
  and Getting Started
- Change site.yml to install on all hosts instead of just workers
- Align example commands to the all-nodes workflow
2026-01-12 08:54:41 +01:00

61 lines
1.0 KiB
YAML

---
- name: Prepare all nodes
hosts: k3s_cluster
gather_facts: true
become: true
roles:
- role: prereq
tags:
- prereq
- prepare
- name: Setup primary k3s master (control-plane node 1)
hosts: "{{ groups['master'][0] }}"
become: true
roles:
- role: k3s-server
tags:
- k3s-server
- server
- master
- name: Setup additional k3s masters (control-plane nodes 2+)
hosts: "{{ groups['master'][1:] | default([]) }}"
serial: 1
become: true
roles:
- role: k3s-server
tags:
- k3s-server
- server
- master
- name: Setup k3s agents (worker nodes)
hosts: worker
become: true
roles:
- role: k3s-agent
tags:
- k3s-agent
- agent
- worker
- name: Install compute-blade-agent on workers
hosts: all
become: true
roles:
- role: compute-blade-agent
tags:
- compute-blade-agent
- blade-agent
- name: Deploy test applications
hosts: "{{ groups['master'][0] }}"
gather_facts: true
become: false
roles:
- role: k3s-deploy-test
tags:
- test
- deploy-test