aboutsummaryrefslogtreecommitdiff
path: root/tasks/pve_setup.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-06-27 14:36:04 +0300
committerheqnx <root@heqnx.com>2025-06-27 14:36:04 +0300
commitcb3dc22df728272ad05de3684eb8dc672654a05e (patch)
tree4c3ddd6505b82d4559ced35232e3ea028b70da1d /tasks/pve_setup.yaml
parent12756a89c2089f696c9e05bf8c95a093e25521a4 (diff)
downloadansible-pve-host-cb3dc22df728272ad05de3684eb8dc672654a05e.tar.gz
ansible-pve-host-cb3dc22df728272ad05de3684eb8dc672654a05e.zip
added conditional dnsmasq setup for vmbr1 and ufw filter rules; fixed a couple of issues by removing /etc/pve/priv, no need for modifying it
Diffstat (limited to 'tasks/pve_setup.yaml')
-rw-r--r--tasks/pve_setup.yaml13
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 }}"