diff options
Diffstat (limited to 'tasks/pve_setup.yaml')
-rw-r--r-- | tasks/pve_setup.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tasks/pve_setup.yaml b/tasks/pve_setup.yaml index 9de9489..28fb8bc 100644 --- a/tasks/pve_setup.yaml +++ b/tasks/pve_setup.yaml @@ -97,6 +97,19 @@ register: grub_update changed_when: "'Generating grub configuration file' in grub_update.stdout" +- name: block all generic linux-image and linux-headers (non-pve) + copy: + dest: /etc/apt/preferences.d/no-debian-kernel + content: | + Package: linux-image-* + Pin: release * + Pin-Priority: -1 + + Package: linux-headers-* + Pin: release * + Pin-Priority: -1 + mode: '0644' + - name: remove problematic apt packages for pve apt: name: "{{ apt_packages_to_remove }}" |