2022-12-20 19:47:11 +01:00
|
|
|
---
|
|
|
|
- name: "install unattended-upgrades"
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: "unattended-upgrades"
|
|
|
|
|
|
|
|
- name: "configure unattended-upgrades"
|
2023-02-25 10:40:11 +01:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: "./50unattended-upgrades.j2"
|
2022-12-20 19:47:11 +01:00
|
|
|
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: "enable unattended-upgrades"
|
2023-02-25 10:40:11 +01:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: "./20auto-upgrades.j2"
|
2022-12-20 19:47:11 +01:00
|
|
|
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
|
|
|
mode: 0644
|