|
|
@@ -20,7 +20,7 @@ linux_kernel_package: |
|
|
|
# Not very Salt-ish.. :-( |
|
|
|
linux_kernel_old_absent: |
|
|
|
cmd.wait: |
|
|
|
- name: "apt-get purge -y --no-input $(dpkg -l '*linux-image-[0-9]*' '*linux-headers-[0-9]*' '*linux-extra-[0-9]*' | grep -E '^ii' | awk '{print $2}' | grep -v '{{ system.kernel.version }}')" |
|
|
|
- name: "apt-get purge -y $(dpkg -l '*linux-image-[0-9]*' '*linux-headers-[0-9]*' '*linux-extra-[0-9]*' | grep -E '^ii' | awk '{print $2}' | grep -v '{{ system.kernel.version }}')" |
|
|
|
- watch: |
|
|
|
- pkg: linux_kernel_package |
|
|
|
|