Add automatic_updates role
This commit is contained in:
8
roles/automatic_updates/meta/argument_specs.yaml
Normal file
8
roles/automatic_updates/meta/argument_specs.yaml
Normal 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: {}
|
||||||
14
roles/automatic_updates/tasks/main.yaml
Normal file
14
roles/automatic_updates/tasks/main.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user