Move kernel cleanup to after reboot
Otherwise, modules might fail etc. when the kernel package is purged before reboot causing odd failures.
This commit is contained in:
parent
7fe682aa60
commit
d0bcbf123f
|
@ -35,12 +35,6 @@
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
upgrade: full
|
upgrade: full
|
||||||
|
|
||||||
- name: clean up obsolete kernels
|
|
||||||
command: /usr/local/sbin/kernel-cleanup.sh
|
|
||||||
|
|
||||||
- name: clean up obsolete packages
|
|
||||||
command: /usr/local/sbin/dpkg-cleanup.sh
|
|
||||||
|
|
||||||
- name: clean apt archives
|
- name: clean apt archives
|
||||||
file:
|
file:
|
||||||
dest: /var/cache/apt/archives
|
dest: /var/cache/apt/archives
|
||||||
|
@ -225,6 +219,12 @@
|
||||||
become: no
|
become: no
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
|
- name: clean up obsolete kernels
|
||||||
|
command: /usr/local/sbin/kernel-cleanup.sh
|
||||||
|
|
||||||
|
- name: clean up obsolete packages
|
||||||
|
command: /usr/local/sbin/dpkg-cleanup.sh
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in New Issue