From 06fb080d5cb0caf0b723af08ab964a0f8205b802 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 8 Aug 2026 08:57:01 +0200 Subject: [PATCH] Change apt update task to use command module and set DEBIAN_FRONTEND to noninteractive --- roles/common/tasks/apt.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/common/tasks/apt.yml b/roles/common/tasks/apt.yml index d255370..d9d2444 100644 --- a/roles/common/tasks/apt.yml +++ b/roles/common/tasks/apt.yml @@ -157,10 +157,10 @@ - apt-configuration - name: (apt.yml) apt update - ansible.builtin.apt: - update_cache: true - cache_valid_time: "{{ 0 if common_apt_config_updated is defined and common_apt_config_updated.changed else apt_update_cache_valid_time }}" + ansible.builtin.command: apt-get update # noqa: command-instead-of-module changed_when: false + environment: + DEBIAN_FRONTEND: noninteractive when: apt_update|bool tags: - apt-update