Add automatic_updates role

This commit is contained in:
uumas
2025-03-27 21:48:12 +02:00
parent 52862ddfdd
commit 632a893ca5
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
---
argument_specs:
main:
short_description: Automatic updates
description:
- This role enables automatic package updates.
- It currently supports Debian and Ubuntu.
options: {}

View File

@@ -0,0 +1,14 @@
---
- name: Ensure host distribution is supported
ansible.builtin.import_role:
name: compatcheck
vars:
compatcheck_supported_distributions:
- name: debian
version_min: 11
- name: ubuntu
version_min: 24
- name: Install unatteded-upgrades
ansible.builtin.apt:
name: unattended-upgrades