Ensure DEBIAN_FRONTEND is noninteractive
This commit is contained in:
parent
0114ad8ed5
commit
3a67dc129b
|
@ -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