Concluding the testing of the Geth role

This commit is contained in:
2026-08-10 16:33:41 -05:00
parent a7c8d6471b
commit ac7abefb77
5 changed files with 42 additions and 37 deletions
+10 -3
View File
@@ -1,7 +1,14 @@
---
- name: Set up primary
- name: Set up worker
become: yes
ansible.builtin.command:
cmd: '/bin/bash -c "K3S_TOKEN={{ secrets['Geth']['k3s_token'] }} K3S_URL=https://{{ geth_primary }}:6443 K3S_NODE_NAME=${HOSTNAME} /usr/local/sbin/get-k3s.sh"'
creates: /etc/systemd/system/k3s.service
cmd: /bin/bash -c "K3S_TOKEN={{ secrets['Geth']['k3s_token'] }} K3S_URL=https://{{ geth_primary }}:6443 K3S_NODE_NAME=${HOSTNAME} /usr/local/sbin/get-k3s.sh"
creates: /etc/systemd/system/k3s-agent.service
- name: Enable k3s-agent
become: yes
ansible.builtin.service:
name: k3s-agent
state: restarted
enabled: yes