23 lines
516 B
YAML
23 lines
516 B
YAML
---
|
|
- name: Install unattended-upgrades
|
|
ansible.builtin.apt:
|
|
name:
|
|
- unattended-upgrades
|
|
- apt-listchanges
|
|
state: present
|
|
|
|
- name: Configure auto-upgrades
|
|
ansible.builtin.template:
|
|
src: auto-upgrades
|
|
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Configure unattended-upgrades
|
|
ansible.builtin.template:
|
|
src: unattended-upgrades
|
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|