Skip to content
Snippets Groups Projects
Verified Commit 47e0b51f authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Try Simon's workaround

parent 88353075
No related branches found
No related tags found
No related merge requests found
......@@ -47,11 +47,30 @@
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)
- name: Get kbd device name
tags:
- helm
shell: journalctl -k | awk '/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: Install kubectl snap
# kubectl needs to get installed as "classic" snap
command: snap install --classic kubectl
command: "{{ item }}"
args:
creates: /snap/bin/kubectl
with_items:
# mount and umount commands are part of the workaround mentioned above
- sudo mount --bind /dev/zero /sys/{{ kdb_device.stdout }}/uevent
- snap install --classic kubectl
- sudo umount /sys/{{ kbd_device.stdout }}/uevent
- name: Create kubectl symlink to /usr/local/bin
file:
......
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