Ensure DEBIAN_FRONTEND is noninteractive
This commit is contained in:
parent
4ccc23bd85
commit
b4e9ed5d39
|
@ -3,6 +3,8 @@
|
||||||
# dpkg-cleanup.sh - Remove obsolete packages and config files
|
# dpkg-cleanup.sh - Remove obsolete packages and config files
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Phase 1 - purge `rc` packages
|
# Phase 1 - purge `rc` packages
|
||||||
PACKAGE_LIST=( $( dpkg --list | awk '/^rc/{ print $2 } /^ri/{ print $2 }' ) )
|
PACKAGE_LIST=( $( dpkg --list | awk '/^rc/{ print $2 } /^ri/{ print $2 }' ) )
|
||||||
apt purge -y ${PACKAGE_LIST[@]}
|
apt purge -y ${PACKAGE_LIST[@]}
|
||||||
|
|
Loading…
Reference in New Issue