Ensure DEBIAN_FRONTEND is noninteractive

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:26 -04:00
parent 0114ad8ed5
commit 3a67dc129b
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
# dpkg-cleanup.sh - Remove obsolete packages and config files
# {{ ansible_managed }}
export DEBIAN_FRONTEND=noninteractive
# Phase 1 - purge `rc` packages
PACKAGE_LIST=( $( dpkg --list | awk '/^rc/{ print $2 } /^ri/{ print $2 }' ) )
apt purge -y ${PACKAGE_LIST[@]}