Run unattended-upgrades for all repos/origins

Per default unattended-upgrades is configured to only update/upgrade packages
from official Debian and Debian Security repos. This change removes all
limitations.
This commit is contained in:
Julian Rother 2021-12-11 13:15:21 +01:00
parent 649ecca785
commit 2fdfbaf1f0
2 changed files with 16 additions and 1 deletions

View file

@ -7,12 +7,21 @@
tags:
- update
- name: setup unattended updates
- name: install unattended-upgrades
apt:
name: unattended-upgrades
purge: yes
state: "{% if update.unattended %}present{% else %}absent{% endif %}"
- name: configure unattended-upgrades
ansible.builtin.copy:
src: "50unattended-upgrades"
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
owner: root
group: root
mode: 0644
when: update.unattended
- name: clean
command: apt-get clean
changed_when: False