Basic system configuration, which is not worth an own role.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
lingling a5c3dc8175
Remove systemd-timesyncd config
This is now done by lingfra.system.sd_timesyncd
2025-05-26 10:38:01 +02:00
defaults Keep SYSTEMD_EDITOR environment variable for sudo 2024-08-20 22:40:38 +02:00
handlers add systemd-timesyncd configuration 2024-08-04 12:35:10 +02:00
meta initial commit 2024-08-04 10:55:55 +02:00
tasks Remove systemd-timesyncd config 2025-05-26 10:38:01 +02:00
.gitignore initial commit 2024-08-04 10:55:55 +02:00
LICENSE initial commit 2024-08-04 10:55:55 +02:00
README.md markdownlint format + adjust author / license note 2024-12-21 15:22:24 +01:00

Ansible Role: basics

Configures some basics on a system, which are not worth an own role.

Features

Limitations

None.

Requirements

None.

Role Variables

External Variables

None.

Public Role Variables

Feature selection:

  • basics_include_hostname (boolean), default true. Whether tasks for hostname should be included or not.
  • basics_include_sudo_defaults (boolean), default true. Whether tasks for sudo defaults should be included or not.
  • basics_include_systemd_timesyncd (boolean), default true. Whether tasks for systemd-timesyncd should be included or not.

Configuration:

  • basics_hostname (string), default to split the inventory_hostname by . and use the first list item. Hostname for the host to set.
  • basics_hostname_use (string), default systemd. Tool to use for setting the hostname.

Internal Role Variables

  • basics_systemd_timesyncd_conf_dir (string), value /etc/systemd/timesyncd.conf.d. Directory path for systemd-timesyncd drop-in configuration files.

Dependencies

None.

Example Playbook

- hosts: all
  tasks:
    - name: Include role basics
      ansible.builtin.include_role:
        name: basics

License

The Unlicense

Author Information

lingling (Codeberg, GitHub)