dtoch56.prepare_host

dtoch56.prepare_host Role

CI Release Role Downloads

This role sets up the host's NTP (Network Time Protocol), timezone, locales, and other initial settings.

Requirements

  • No requirements.

Role Variables

You can customize the following variables (with their default values listed):

Variable Description Default
Locale
locale_lang en_US.UTF-8
locale_language en_US.UTF-8
locale_lc_address en_US.UTF-8
locale_lc_all en_US.UTF-8
locale_lc_collate en_US.UTF-8
locale_lc_ctype en_US.UTF-8
locale_lc_identification en_US.UTF-8
locale_lc_measurement en_US.UTF-8
locale_lc_messages en_US.UTF-8
locale_lc_monetary en_US.UTF-8
locale_lc_name en_US.UTF-8
locale_lc_numeric en_US.UTF-8
locale_lc_paper en_US.UTF-8
locale_lc_response en_US.UTF-8
locale_lc_telephone en_US.UTF-8
locale_lc_time Name and encoding of the locale en_US.UTF-8
NTP
ntp_enabled Start the NTP service and enable it at system boot. true
ntp_timezone Server's timezone Etc/UTC
ntp_package Package required for NTP functionality.
ntp_daemon Replace default NTP service for your distribution.
ntp_config_file Path to the NTP configuration file.
ntp_manage_config Allow this role to manage the NTP configuration file. false
ntp_driftfile Replace default NTP driftfile for your distribution.
ntp_area Specify the NTP Pool Area to use. ''
ntp_servers List of NTP servers to use.
ntp_restrict Limit NTP access to these hosts ["127.0.0.1", "::1"]
ntp_cron_handler_enabled Restart the cron service after timezone changes. false
ntp_tinker_panic Enable tinker panic, useful for running NTP in a VM. false

Dependencies

  • No dependencies.

Example Playbook

Here is an example of how to use this role in a playbook:

- hosts: servers
  roles:
    - { role: dtoch56.prepare_host }

License

  • MIT / BSD

Author Information

This role was created in 2021 by dtoch56.

Development

To get started with development, run:

pip install pipenv
pipenv install
ansible-playbook main.yml --ask-become-pass
Informazioni sul progetto

Host locale and tmezone configuration

Installa
ansible-galaxy install dtoch56.prepare_host
Licenza
mit
Download
107
Proprietario
Web developer, DevOps