Skip to content

Commit 3319537

Browse files
committed
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
1 parent 731befd commit 3319537

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

roles/unattended_upgrades/tasks/systemd_timers.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
state: 'directory'
2727
owner: 'root'
2828
group: 'root'
29-
register: '_apt_daily_timer_d'
3029

3130
- name: 'Ensure directory apt-daily-upgrade.timer.d exists'
3231
ansible.builtin.file:
@@ -35,7 +34,6 @@
3534
state: 'directory'
3635
owner: 'root'
3736
group: 'root'
38-
register: '_apt_daily_upgrade_timer_d'
3937

4038
- name: 'Deploy apt-daily timer'
4139
ansible.builtin.template:
@@ -46,7 +44,6 @@
4644
group: 'root'
4745
when:
4846
- '_apt_daily.rc == 0'
49-
- '_apt_daily_timer_d' # skip if run for the first time in check mode
5047
notify:
5148
- 'Restart apt-daily timer'
5249

@@ -59,7 +56,6 @@
5956
group: 'root'
6057
when:
6158
- '_apt_daily_upgrade.rc == 0'
62-
- '_apt_daily_upgrade_timer_d' # skip if run for the first time in check mode
6359
notify:
6460
- 'Restart apt-daily-upgrade timer'
6561
...

0 commit comments

Comments
 (0)