Ansible role for common server configuration
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Cornet 5ec4e4e744
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: remove test task
2026-07-16 11:09:57 +02:00
.woodpecker chore(package): update cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2 docker tag to v0.23.0 2026-07-01 07:31:28 +00:00
defaults feat: add zram by default 2026-06-18 14:40:37 +02:00
handlers feat: add zram by default 2026-06-18 14:40:37 +02:00
meta feat(meta): compress galaxy_info 2025-05-28 07:24:52 +02:00
roles fix: update requirements to forgejo repo locations 2026-05-15 13:51:05 +02:00
tasks fix(zram): reset device before config deploy to avoid busy error 2026-06-18 14:52:33 +02:00
templates feat: dont use mlkem for ubuntu 24 2026-07-10 16:04:35 +02:00
vars feat: add boto3 to default packages 2026-05-19 10:21:03 +02:00
.ansible-lint fix: exclude only sops yml files from lint 2026-07-14 16:23:37 +02:00
.editorconfig chore: add .editorconfig and .gitattributes 2026-05-27 14:23:41 +02:00
.gitattributes chore: add .editorconfig and .gitattributes 2026-05-27 14:23:41 +02:00
.gitignore feat: add gitigore file 2025-03-31 11:34:22 +02:00
.markdownlint-cli2.jsonc style: ignore line length for markdown tables 2026-05-15 13:43:59 +02:00
.sops.yaml fix: correct sops regex to ya?ml 2026-07-14 16:01:44 +02:00
.yamllint chore: exclude .yml files from lint configs 2026-07-14 16:17:20 +02:00
AGENTS.md style: align markdown table formatting for MD060 compliance 2026-05-18 18:26:21 +02:00
ansible.cfg feat: add ansible.cfg for sops vars plugin 2026-07-14 11:06:50 +02:00
playbook.yaml chore: remove test task 2026-07-16 11:09:57 +02:00
readme.md style: fix markdown table column alignment 2026-05-18 18:27:50 +02:00
renovate.json fix(ci): use central config 2025-06-17 17:57:50 +02:00
requirements.yml feat: add community.sops 2026-07-14 11:03:10 +02:00

Ansible Role: Common

Manage core Operating System components and system defaults.

Variables

APT Configuration

Variable Required Default Description
apt_automatic_reboot_time No 04:00 Automated reboot time
apt_automatic_reboot No true Enable automated reboots
apt_enable_multiverse No false Enable multiverse repository
apt_enable_universe No true Enable universe repository
apt_repository No https://archive.ubuntu.com/ubuntu APT repository URL (Ubuntu 22)
apt_repository_main No https://archive.ubuntu.com/ubuntu Main APT repository (Ubuntu 24+)
apt_repository_security No https://archive.ubuntu.com/ubuntu Security APT repository (Ubuntu 24+)

DNS Configuration

Variable Required Default Description
dns_servers No ["192.168.10.1"] List of DNS nameservers to use
dns_search No ["example.internal"] List of search domains to use
dns_options No [] List of resolver options

NTP Configuration

Variable Required Default Description
ntp_server No pool.ntp.org NTP server for time synchronization
timezone No Europe/Amsterdam System timezone

Tags

Available tags for selective execution:

  • apt - APT package management
  • apt-cleanup - Clean APT cache
  • apt-update - Update APT packages
  • dns - Manage DNS configuration
  • cron - Configure cron
  • environment-file - Manage environment files
  • hostname - Set hostname
  • hostfile - Manage /etc/hosts
  • firewall - Configure firewall
  • journald - Configure journald
  • locale - Set system locale
  • lldp - Configure LLDP
  • lxd - Configure LXD
  • motd - Set message of the day
  • ntp - Configure NTP
  • telemetry - Configure telemetry
  • snap - Manage snap packages
  • sshd - Configure SSH daemon
  • swap - Configure swap
  • sysctl - Manage sysctl settings
  • systemctl - Manage systemd services
  • syslog - Configure syslog
  • timezone - Set timezone
  • usermanagement - Manage users

Example

apt_automatic_reboot: true
apt_automatic_reboot_time: "03:00"
ntp_server: "time.cloudflare.com"
timezone: "UTC"