From 86dbb51c5d01aa87ab8b3dac3ed6b0a5c4b7ddf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Mon, 6 Jan 2025 14:15:06 +0100 Subject: [PATCH] [FIX] remove apt conf if not in maintenance_contract --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index dee0638..4406687 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -111,7 +111,8 @@ owner: root group: root mode: '0644' - when: ansible_os_family == "Debian" + when: ansible_os_family == "Debian" and inventory_hostname in groups.full_maintenance + tags: unattended-upgrade - name: Copy Unattended Upgrades configuration ansible.builtin.template: -- GitLab