mirror of
https://github.com/luzifer-ansible/ubuntu-unattended-upgrades.git
synced 2024-11-08 13:40:02 +00:00
22 lines
497 B
YAML
22 lines
497 B
YAML
---
|
|
|
|
- name: Install required packages for autoupdate
|
|
apt:
|
|
name:
|
|
- unattended-upgrades
|
|
- sendmail
|
|
cache_valid_time: 86400
|
|
|
|
- name: Enable automatic update / upgrade
|
|
copy:
|
|
content: |
|
|
APT::Periodic::Update-Package-Lists "1";
|
|
APT::Periodic::Unattended-Upgrade "1";
|
|
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
|
|
|
- name: Configure unattended upgrades
|
|
template:
|
|
src: templates/50unattended-upgrades
|
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
|
|
...
|