infra/roles/stable/common/tasks/main.yml

37 lines
668 B
YAML
Raw Normal View History

2020-10-03 22:34:11 +02:00
---
2020-10-22 00:18:00 +02:00
- name: Update apt cache if needed
become: yes
apt:
2020-11-21 23:42:08 +01:00
update_cache: yes
cache_valid_time: 3600
2020-10-22 00:18:00 +02:00
2020-10-03 22:34:11 +02:00
- name: Install generic deps
2020-11-21 23:42:08 +01:00
become: yes
2020-10-03 22:34:11 +02:00
apt:
pkg:
- git
- sudo
- acl
2020-10-22 00:55:01 +02:00
- name: Add Backports Repository
2020-11-21 23:42:08 +01:00
become: yes
2020-10-22 00:55:01 +02:00
apt_repository:
2020-11-10 23:14:10 +01:00
repo: deb http://deb.debian.org/debian buster-backports main contrib non-free
2020-10-22 00:55:01 +02:00
state: present
update_cache: yes
2020-10-03 22:34:11 +02:00
- name: Install Unattended Upgrades
2020-11-21 23:42:08 +01:00
become: yes
2020-10-03 22:34:11 +02:00
apt:
pkg:
- unattended-upgrades
- name: Activate Unattented Upgrades
2020-11-21 23:42:08 +01:00
become: yes
2020-10-03 22:34:11 +02:00
copy:
src: 20auto-upgrades
dest: /etc/apt/apt.conf.d/20auto-upgrades
owner: root
group: root
2020-10-22 00:18:00 +02:00
mode: 0644