From 3319537c97a0ea6da3cfe60e8038b9141a60f5ef Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Wed, 30 Jul 2025 13:13:45 +0200 Subject: [PATCH] Remove broken conditionals for Ansible 2.19 Ansible 2.19 no longer allows impliction boolean conversions. Given those conditions where not necessary in the first place, remove the registers created for them as well. See https://ansible.readthedocs.io/projects/ansible-core/devel/porting_guides/porting_guide_core_2.19.html#broken-conditionals --- roles/unattended_upgrades/tasks/systemd_timers.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/roles/unattended_upgrades/tasks/systemd_timers.yml b/roles/unattended_upgrades/tasks/systemd_timers.yml index 921d9f85..6192a2d8 100644 --- a/roles/unattended_upgrades/tasks/systemd_timers.yml +++ b/roles/unattended_upgrades/tasks/systemd_timers.yml @@ -26,7 +26,6 @@ state: 'directory' owner: 'root' group: 'root' - register: '_apt_daily_timer_d' - name: 'Ensure directory apt-daily-upgrade.timer.d exists' ansible.builtin.file: @@ -35,7 +34,6 @@ state: 'directory' owner: 'root' group: 'root' - register: '_apt_daily_upgrade_timer_d' - name: 'Deploy apt-daily timer' ansible.builtin.template: @@ -46,7 +44,6 @@ group: 'root' when: - '_apt_daily.rc == 0' - - '_apt_daily_timer_d' # skip if run for the first time in check mode notify: - 'Restart apt-daily timer' @@ -59,7 +56,6 @@ group: 'root' when: - '_apt_daily_upgrade.rc == 0' - - '_apt_daily_upgrade_timer_d' # skip if run for the first time in check mode notify: - 'Restart apt-daily-upgrade timer' ...