Skip to content
Snippets Groups Projects
Unverified Commit 6bfdfc0e authored by Varac's avatar Varac
Browse files

Undo bullseye bug circumvention

Closes: #948
parent 447b609c
No related branches found
No related tags found
No related merge requests found
......@@ -44,34 +44,6 @@
with_items:
- python3-pip
# We work around a Debian Bullseye issue with installing snaps on Xen nodes:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983357 (Debian link)
# https://code.greenhost.net/greenhost/sysops/-/issues/915#note_108038 (GH # internal link)
# Once the debian issue is solved and Greenhost has patched the kernel, these
# three workaround commands can be removed.
- name: Workaround debian bug 1/3
tags:
- snap
shell: "journalctl -k | awk '/input: Xen Virtual Keyboard/ {print $11}'"
args:
# Only run this if kubectl snap has not been installed yet
creates: /snap/bin/kubectl
register: kbd_device
failed_when: false
changed_when: false
- name: Workaround debian bug 2/3
tags:
- snap
# kubectl needs to get installed as "classic" snap
mount:
opts: bind
src: /dev/zero
path: /sys/{{ kbd_device.stdout }}/uevent
fstype: none
state: mounted
when: kbd_device.stdout != "" and kbd_device.stdout != "skipped, since /snap/bin/kubectl exists"
- name: Install kubectl and helm snap
tags:
- snap
......@@ -83,15 +55,6 @@
- helm
- kubectl
- name: Workaround debian bug 3/3
tags:
- snap
# kubectl needs to get installed as "classic" snap
mount:
path: /sys/{{ kbd_device.stdout }}/uevent
state: unmounted
when: kbd_device.stdout != "" and kbd_device.stdout != "skipped, since /snap/bin/kubectl exists"
- name: Create kubectl and helm symlinks to /usr/local/bin
tags:
- snap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment