]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/debian-base/tasks/main.yml
debian-base: Don't install kernel package von Proxmox-VE hosts
[AnsibleRoles.git] / roles / debian-base / tasks / main.yml
index 91fbd1f344ee71103e340af2cd34c81446048f60..3ec7a194413409d25d8c94b9c5cf892f91747fcf 100644 (file)
@@ -17,7 +17,6 @@
     - git
     - htop
     - less
-    - linux-image-amd64
     - lsb-base
     - lsb-release
     - psmisc
     - sudo
     - telnet-ssl
     - vim
+
+- name: install Linux kernel packages (amd64; non Proxmox-VE hosts)
+  tags:
+    - packages
+  apt: >
+    state=installed
+    name=linux-image-amd64
+  when: "ansible_architecture == 'x86_64' and ansible_kernel.find('pve') < 1"
+
+- name: install Linux kernel packages (i386; non Proxmox-VE hosts)
+  tags:
+    - packages
+  apt: >
+    state=installed
+    name=linux-image-686-pae
+  when: "ansible_architecture == 'i386' and ansible_kernel.find('pve') < 1"