diff --git a/playbooks/apply-package-updates.yaml b/playbooks/apply-package-updates.yaml index 2092e0a2be..af9a50f8d9 100644 --- a/playbooks/apply-package-updates.yaml +++ b/playbooks/apply-package-updates.yaml @@ -1,8 +1,8 @@ - hosts: "{{ target }}" user: root tasks: - - name: Run unattended-upgrade on debuntu - shell: | - unattended-upgrade -d - when: ansible_facts['os_family'] == "Debian" - # TODO add equivalent for other platforms + - name: Upgrade packages + apt: + upgrade: dist + update_cache: yes + autoremove: yes