Ansible role for common server configuration
Find a file
2026-05-11 12:23:31 +02:00
.woodpecker feat: add linting workflows 2026-05-11 12:21:27 +02:00
defaults feat(dns): add dns options 2026-04-29 18:05:54 +02:00
handlers feat: setup syslog for alpine 2026-04-05 18:45:09 +02:00
meta feat(meta): compress galaxy_info 2025-05-28 07:24:52 +02:00
roles fix: common role layout 2026-01-24 19:02:34 +01:00
tasks feat: disable dns for now 2026-05-08 08:49:55 +02:00
templates fix: resolv.conf.j2 filename 2026-05-08 08:46:09 +02:00
vars feat: add missing empty var file for ALpine 2025-10-24 18:33:50 +02:00
.ansible-lint feat: add woodpecker to ansible-lint exclusions 2026-05-11 12:23:31 +02:00
.gitignore feat: add gitigore file 2025-03-31 11:34:22 +02:00
.gitlab-ci.yml ci: move gitleaks to component 2026-01-19 17:16:43 +01:00
.markdownlint-cli2.jsonc feat(ci): move linting to components 2025-06-13 11:49:46 +02:00
.yamllint fix(ci): set linelenght to 120 2025-05-09 11:38:42 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:06:22 +01:00
playbook.yaml feat: run force-update always 2026-03-02 17:59:43 +01:00
readme.md feat(dns): add dns options 2026-04-29 18:05:54 +02:00
renovate.json fix(ci): use central config 2025-06-17 17:57:50 +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"