ci / test (push) Successful in 28s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
28 lines
846 B
YAML
28 lines
846 B
YAML
# k3s-Cluster (D6): Server auf der Dienst-VM "k3s", Agents in den GPU-VMs, danach Runtime, Device-Plugin,
|
|
# Portainer-Agent. Aufruf auf ops (vorher bash ../scripts/refresh-vm-access.sh, Adressen per DHCP):
|
|
# ansible-playbook playbooks/k3s.yml
|
|
- name: k3s-Server
|
|
hosts: k3s_server
|
|
pre_tasks:
|
|
- name: DHCP-Client-ID auf MAC umstellen (Reservierung am DC, wie bei den GPU-VMs)
|
|
ansible.builtin.copy:
|
|
dest: /etc/netplan/99-knaster-dhcp-id.yaml
|
|
content: |
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
eth0:
|
|
dhcp-identifier: mac
|
|
mode: "0600"
|
|
roles: [k3s-server]
|
|
|
|
- name: k3s-Agents (GPU-VMs)
|
|
hosts: k3s_agents
|
|
roles: [k3s-agent]
|
|
|
|
- name: Grundausstattung im Cluster (von ops)
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
roles: [k3s-apps]
|