This stops the installer from prompting for user decisions during the
various upgrades. Using confnew instead of confold risks breaking
configuration, but we largely use default configurations choosing the
new one means we don't have to go over all the diffs manually.
Change-Id: I754ec43fa35e23050659961ccbadf404ed7838cc
apt_noninteractive_environment:
DEBIAN_FRONTEND: noninteractive
APT_LISTCHANGES_FRONTEND: mail
apt_noninteractive_environment:
DEBIAN_FRONTEND: noninteractive
APT_LISTCHANGES_FRONTEND: mail
+ apt_common_options: "-o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confnew'"
tasks:
- import_tasks: ../tasks/debian_release_upgrade.yml
when: ansible_distribution == 'Debian'
tasks:
- import_tasks: ../tasks/debian_release_upgrade.yml
when: ansible_distribution == 'Debian'
# @TODO: Check required disk space and available disk space
- name: Download packages
command:
# @TODO: Check required disk space and available disk space
- name: Download packages
command:
- cmd: 'apt-get -y -d upgrade'
+ cmd: 'apt-get -y -d upgrade {{apt_common_options}}'
warn: false
environment: "{{apt_noninteractive_environment}}"
- name: Minimal upgrade run
command:
warn: false
environment: "{{apt_noninteractive_environment}}"
- name: Minimal upgrade run
command:
- cmd: 'apt upgrade -y --without-new-pkgs'
+ cmd: 'apt upgrade -y --without-new-pkgs {{apt_common_options}}'
warn: false
environment: "{{apt_noninteractive_environment}}"
- name: Full upgrade run
command:
warn: false
environment: "{{apt_noninteractive_environment}}"
- name: Full upgrade run
command:
- cmd: 'apt full-upgrade -y'
+ cmd: 'apt full-upgrade -y {{apt_common_options}}'
warn: false
environment: "{{apt_noninteractive_environment}}"
# @TODO: reconfigure grub if installed
warn: false
environment: "{{apt_noninteractive_environment}}"
# @TODO: reconfigure grub if installed