forked from cisti/infra
add common role
This commit is contained in:
parent
16ed2a40ef
commit
5fea64d59b
2 changed files with 22 additions and 0 deletions
2
roles/common/files/20auto-upgrades
Normal file
2
roles/common/files/20auto-upgrades
Normal file
|
@ -0,0 +1,2 @@
|
|||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
20
roles/common/tasks/main.yml
Normal file
20
roles/common/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: Install generic deps
|
||||
apt:
|
||||
pkg:
|
||||
- git
|
||||
- sudo
|
||||
- acl
|
||||
|
||||
- name: Install Unattended Upgrades
|
||||
apt:
|
||||
pkg:
|
||||
- unattended-upgrades
|
||||
|
||||
- name: Activate Unattented Upgrades
|
||||
copy:
|
||||
src: 20auto-upgrades
|
||||
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
Loading…
Reference in a new issue