agaric-coop/box/provisioning/roles/geerlingguy.security/tasks/autoupdate-Debian.yml

14 lines
358 B
YAML

---
- name: Install unattended upgrades package.
apt: name=unattended-upgrades state=present
- name: Copy unattended-upgrades configuration files in place.
template:
src: "../templates/{{ item }}.j2"
dest: "/etc/apt/apt.conf.d/{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- 10periodic
- 50unattended-upgrades