Skip to content

Commit 5ae8a21

Browse files
committed
Fix conditionals for Ansible 2.19
Ansible 2.19 no longer allows impliction boolean conversions. See https://ansible.readthedocs.io/projects/ansible-core/devel/porting_guides/porting_guide_core_2.19.html#broken-conditionals
1 parent 731befd commit 5ae8a21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/unattended_upgrades/tasks/systemd_timers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
group: 'root'
4747
when:
4848
- '_apt_daily.rc == 0'
49-
- '_apt_daily_timer_d' # skip if run for the first time in check mode
49+
- '_apt_daily_timer_d is defined' # skip if run for the first time in check mode
5050
notify:
5151
- 'Restart apt-daily timer'
5252

@@ -59,7 +59,7 @@
5959
group: 'root'
6060
when:
6161
- '_apt_daily_upgrade.rc == 0'
62-
- '_apt_daily_upgrade_timer_d' # skip if run for the first time in check mode
62+
- '_apt_daily_upgrade_timer_d is defined' # skip if run for the first time in check mode
6363
notify:
6464
- 'Restart apt-daily-upgrade timer'
6565
...

0 commit comments

Comments
 (0)