From 97e63c438f6640dfc6193389cc8e1163f4f5958e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= <theo@le-filament.com> Date: Mon, 20 Feb 2023 12:01:38 +0100 Subject: [PATCH] change: never include APT phased update --- files/apt-phased-updates | 2 ++ tasks/main.yml | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 files/apt-phased-updates diff --git a/files/apt-phased-updates b/files/apt-phased-updates new file mode 100644 index 0000000..b64115c --- /dev/null +++ b/files/apt-phased-updates @@ -0,0 +1,2 @@ +Update-Manager::Never-Include-Phased-Updates true; +APT::Get::Never-Include-Phased-Updates true; diff --git a/tasks/main.yml b/tasks/main.yml index a3228f7..18357cc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,6 +5,15 @@ - name: Set machine hostname hostname: name="{{ inventory_hostname_short | lower | regex_replace('_','') }}" +- name: Never include APT phased update + copy: + src: apt-phased-updates + dest: /etc/apt/apt.conf.d/99-Phased-Updates + owner: root + group: root + mode: '0644' + when: ansible_os_family == "Debian" + - name: Debian Update repo and upgrade installed packages apt: update_cache: true -- GitLab