ansible/roles/unattended_upgrades/tasks/main.yml

17 lines
315 B
YAML
Raw Permalink Normal View History

2023-10-03 14:09:48 +02:00
---
- name: Install unattended-upgrades
apt:
name: unattended-upgrades
- name: Configure unattended-upgrades
template:
src: "{{ item }}.j2"
dest: "/etc/apt/apt.conf.d/{{ item }}"
owner: root
group: root
mode: "u=rw,g=r,o=r"
loop:
- 20auto-upgrades
- 50unattended-upgrades
...