diff --git a/install_files/ansible-base/roles/common/tasks/unattended_upgrades.yml b/install_files/ansible-base/roles/common/tasks/unattended_upgrades.yml index c8479401cd9..d305e2d7bec 100644 --- a/install_files/ansible-base/roles/common/tasks/unattended_upgrades.yml +++ b/install_files/ansible-base/roles/common/tasks/unattended_upgrades.yml @@ -13,7 +13,7 @@ - apt - unattended-upgrades -- name: Ensure apt-daily and apt-daily-upgrade services and timers are unmasked, started, and enabled. +- name: Ensure apt-daily and apt-daily-upgrade services are unmasked, started and enabled. systemd: name: "{{ item }}" state: started @@ -21,9 +21,20 @@ masked: no with_items: - 'apt-daily' - - 'apt-daily.timer' - 'apt-daily-upgrade' + tags: + - apt + - unattended-upgrades + +- name: Ensure apt-daily and apt-daily-upgrade timers are started, and enabled. + systemd: + name: "{{ item }}" + state: started + enabled: yes + with_items: + - 'apt-daily.timer' - 'apt-daily-upgrade.timer' tags: - apt - unattended-upgrades +