Skip to content

Commit 56c0d67

Browse files
committed
Refactor + group changes
1 parent a8d4e17 commit 56c0d67

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ansible/roles/k3s/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
k3s_version: "v1.31.0+k3s1"

ansible/roles/k3s/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
ansible.builtin.shell:
1414
cmd: /usr/bin/k3s-install.sh
1515
environment:
16-
INSTALL_K3S_VERSION: "v1.31.0+k3s1"
16+
INSTALL_K3S_VERSION: "{{ k3s_version }}"
1717
INSTALL_K3S_EXEC: "{{ item }}"
1818
INSTALL_K3S_SKIP_START: "true"
1919
INSTALL_K3S_SKIP_ENABLE: "true"
2020
INSTALL_K3S_BIN_DIR: "/usr/bin"
2121
changed_when: true
22-
with_items:
22+
loop:
2323
- server
2424
- agent
2525

@@ -37,7 +37,7 @@
3737
ansible.builtin.include_role:
3838
name: k9s
3939

40-
- name: Install k3s server ansible-init playbook
40+
- name: Install ansible-init playbook for k3s agent or server activation
4141
copy:
4242
src: start_k3s.yml
4343
dest: /etc/ansible-init/playbooks/0-start-k3s.yml

environments/common/layouts/everything

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ cluster
8585

8686
[k3s:children]
8787
# Hosts to run k3s server/agent
88-
cluster
88+
openhpc

0 commit comments

Comments
 (0)