prepare_host

dtoch56.prepare_host role

CI Release Role Downloads

Prepare host NTP, timezone, locales and other initial stuff.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

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 ntpd service and enable it at system boot. true
ntp_timezone Timezone for server Etc/UTC
ntp_package The package to install which provides NTP functionality.
ntp_daemon Overwrite default NTP daemon for your distribution,
ntp_config_file The path to the NTP configuration file.
ntp_manage_config Set to true to allow this role to manage the NTP configuration file. false
ntp_driftfile Overwrite default default NTP driftfile for your distribution
ntp_area Set the NTP Pool Area to use. ''
ntp_servers Specify the NTP servers you'd like to use.
ntp_restrict Restrict NTP access to these hosts ["127.0.0.1", "::1"]
ntp_cron_handler_enabled Whether to restart the cron daemon after the timezone has changed. false
ntp_tinker_panic Enable tinker panic, which is useful when running NTP in a VM. false

Dependencies

None.

Example Playbook

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

License

MIT / BSD

Author Information

This role was created in 2021 by dtoch56.

Development

pip install pipenv
pipenv install
ansible-playbook main.yml --ask-become-pass
About

Host locale and tmezone configuration

Install
ansible-galaxy install dtoch56/ansible-role-prepare-host
GitHub repository
License
mit
Downloads
93
Owner
Web developer, DevOps