From c6760fb53ad9d7c3149791ef7cb5fb3d2a811b4a Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Wed, 2 Apr 2025 16:53:30 +0200 Subject: [PATCH] feat(vars): add role defaults --- defaults/main.yaml | 14 ++++++++++++++ readme.md | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 defaults/main.yaml diff --git a/defaults/main.yaml b/defaults/main.yaml new file mode 100644 index 0000000..56edab0 --- /dev/null +++ b/defaults/main.yaml @@ -0,0 +1,14 @@ +--- + +# automatic reboot +apt_automatic_reboot_time: "04:00" +apt_automatic_reboot: true + +# ubuntu package repositories +apt_enable_multiverse: false +apt_enable_universe: true + +# ubuntu repositories urls +apt_repository: "https://archive.ubuntu.com/ubuntu" +apt_repository_main: "https://archive.ubuntu.com/ubuntu" +apt_repository_security: "https://archive.ubuntu.com/ubuntu" diff --git a/readme.md b/readme.md index 058e00d..577d95d 100644 --- a/readme.md +++ b/readme.md @@ -29,3 +29,21 @@ This role manages the build-in 'core' Operating System components and defaults t - syslog - timezone - usermanagement + +# Vars +## apt +| variable | type | value(default) | comment | +| --- | --- | --- | --- | +| apt_automatic_reboot_time | string | 04:00 | Automated reboot at 04:00 | +| apt_automatic_reboot | boolean | true | Toggle automated reboots | +| apt_enable_multiverse | boolean | false | Toggle multiverse repository | +| apt_enable_universe | boolean | true | Toggle universe repository | +| apt_repository | string | https://archive.ubuntu.com/ubuntu | Ubuntu 22 | +| apt_repository_main | string | https://archive.ubuntu.com/ubuntu | Ubuntu 24+ | +| apt_repository_security | string | https://archive.ubuntu.com/ubuntu | Ubuntu 24+ | + +## ntp +| variable | type | value(default) | comment | +| --- | --- | --- | --- | +| ntp_server | string | pool.ntp.org | NTP server to sync time with | +| timezone | string | Europe/Amsterdam | Select the timezone |