Ensure DEBIAN_FRONTEND is noninteractive

This commit is contained in:
Joshua Boniface 2021-06-06 18:02:09 -04:00
parent 4ccc23bd85
commit b4e9ed5d39
1 changed files with 2 additions and 0 deletions

View File

@ -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[@]}