2015-07-03 21:39:37 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install required packages for autoupdate
|
2017-12-24 22:56:31 +00:00
|
|
|
apt:
|
2018-12-27 13:09:53 +00:00
|
|
|
name:
|
|
|
|
- unattended-upgrades
|
|
|
|
- sendmail
|
2018-03-19 15:13:56 +00:00
|
|
|
cache_valid_time: 86400
|
2015-07-03 21:39:37 +00:00
|
|
|
|
2017-12-24 22:56:31 +00:00
|
|
|
- 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
|
2015-07-03 21:39:37 +00:00
|
|
|
|
2017-12-24 22:56:31 +00:00
|
|
|
- name: Configure unattended upgrades
|
|
|
|
template:
|
|
|
|
src: templates/50unattended-upgrades
|
2015-07-03 21:39:37 +00:00
|
|
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
|
|
|
2017-12-24 22:56:31 +00:00
|
|
|
...
|