2020-04-13 14:46:45 +02:00
|
|
|
---
|
|
|
|
# Configure APT repositories and automatic upgrades
|
|
|
|
- name: Safely upgrade the server
|
|
|
|
apt:
|
|
|
|
upgrade: safe
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: "3600"
|
|
|
|
|
2020-04-13 15:27:39 +02:00
|
|
|
- name: Install unattended-upgrades for automatic upgrades
|
2020-04-13 14:46:45 +02:00
|
|
|
apt:
|
|
|
|
name: unattended-upgrades
|
2020-11-30 10:24:47 +01:00
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Install common packages
|
|
|
|
apt:
|
|
|
|
name: "{{ package }}"
|
|
|
|
state: present
|
|
|
|
loop: "{{ common_packages }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: package
|