17 lines
315 B
YAML
17 lines
315 B
YAML
|
---
|
||
|
- 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
|
||
|
...
|