diff --git a/roles/fai/templates/srv/fai/config/files/etc/cron.d/kamikaze.j2 b/roles/fai/templates/srv/fai/config/files/etc/cron.d/kamikaze.j2 index b49f975..094705b 100644 --- a/roles/fai/templates/srv/fai/config/files/etc/cron.d/kamikaze.j2 +++ b/roles/fai/templates/srv/fai/config/files/etc/cron.d/kamikaze.j2 @@ -1,5 +1,5 @@ SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -@reboot root sleep 30 && snap install {{ +@reboot root sleep 30 && apt-get update && apt-get install -y snapd && snap install {{ ubuntu.snaps|map(attribute="name") |join(' ') }} && [ -f "{{ crond_kamikaze }}" ] && rm "{{ crond_kamikaze }}"