Change apt update task to use command module and set DEBIAN_FRONTEND to noninteractive
This commit is contained in:
@@ -157,10 +157,10 @@
|
|||||||
- apt-configuration
|
- apt-configuration
|
||||||
|
|
||||||
- name: (apt.yml) apt update
|
- name: (apt.yml) apt update
|
||||||
ansible.builtin.apt:
|
ansible.builtin.command: apt-get update # noqa: command-instead-of-module
|
||||||
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 }}"
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
environment:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
when: apt_update|bool
|
when: apt_update|bool
|
||||||
tags:
|
tags:
|
||||||
- apt-update
|
- apt-update
|
||||||
|
|||||||
Reference in New Issue
Block a user