Compare commits

...

5 Commits

Author SHA1 Message Date
João Gonçalves
54517f958e Merge 5de918f9ad into edf0c9eebd 2024-01-19 10:49:32 -05:00
egandro
edf0c9eebd fix for recreating new control planes (2nd run) (#393)
Co-authored-by: Harald Fielker <harald.fielker@gmail.com>
Co-authored-by: Techno Tim <timothystewart6@gmail.com>
2024-01-19 08:37:14 -06:00
João Gonçalves
5de918f9ad Merge branch 'master' into master 2024-01-12 18:24:01 +00:00
João Gonçalves
586434b80d Update test.yml 2023-12-07 16:42:06 +00:00
joao-pc-goncalves
1e25cce032 feat(k3s): added support for latest raspberrypi os (debian 12 bookworm) 2023-11-23 09:56:39 +00:00
3 changed files with 17 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
name: Test
on:
workflow_call:
workflow_dispatch: {}
jobs:
molecule:
name: Molecule

View File

@@ -6,6 +6,13 @@
state: stopped
failed_when: false
# k3s-init won't work if the port is already in use
- name: Stop k3s
systemd:
name: k3s
state: stopped
failed_when: false
- name: Clean previous runs of k3s-init # noqa command-instead-of-module
# The systemd module does not support "reset-failed", so we need to resort to command.
command: systemctl reset-failed k3s-init
@@ -29,7 +36,7 @@
-p Restart=on-failure \
--unit=k3s-init \
k3s server {{ server_init_args }}"
creates: "{{ systemd_dir }}/k3s.service"
creates: "{{ systemd_dir }}/k3s-init.service"
- name: Verification
when: not ansible_check_mode

View File

@@ -33,6 +33,14 @@
- raspberry_pi|default(false)
- ansible_facts.lsb.description|default("") is match("Debian.*buster")
- name: Set detected_distribution to Raspbian (ARM64 on Debian Bookworm)
set_fact:
detected_distribution: Raspbian
when:
- ansible_facts.architecture is search("aarch64")
- raspberry_pi|default(false)
- ansible_facts.lsb.description|default("") is match("Debian.*bookworm")
- name: Set detected_distribution_major_version
set_fact:
detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"