Basic system configuration, which is not worth an own role.
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| defaults | ||
| handlers | ||
| meta | ||
| tasks | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Ansible Role: basics
Configures some basics on a system, which are not worth an own role.
Features
- Configures hostname of machines.
- Configure NTP servers for systemd-timesyncd.
Limitations
None.
Requirements
None.
Role Variables
External Variables
None.
Public Role Variables
Feature selection:
basics_include_hostname(boolean), defaulttrue. Whether tasks for hostname should be included or not.basics_include_sudo_defaults(boolean), defaulttrue. Whether tasks for sudo defaults should be included or not.basics_include_systemd_timesyncd(boolean), defaulttrue. Whether tasks for systemd-timesyncd should be included or not.
Configuration:
basics_hostname(string), default to split theinventory_hostnameby.and use the first list item. Hostname for the host to set.basics_hostname_use(string), defaultsystemd. 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