ryezone_labs.ntp

ryezone_labs.ntp

This role installs and sets up NTP (Network Time Protocol) client and daemon software.

Role Variables

  • ntpd_enabled (bool)

    When set to true, it installs and configures the NTP daemon.

  • ntp_enabled (bool)

    When set to true, it installs and configures the NTP client.

  • ntp_timezone (string)

    Defines the server's timezone.

  • ntp_manage_config (bool)

    When set to true, it updates the default configuration of the NTP daemon and client with a managed configuration.

  • ntp_daemon_log_options (string)

    A space-separated list of options for the NTP daemon's configuration settings.

  • ntp_daemon_maxupdateskew (decimal)

    Sets the limit for how much the NTP daemon will accept as a reliable time estimate.

  • ntp_daemon_logchange (decimal)

    Sets the limit for how much the system clock can adjust before a log message is generated.

  • ntp_daemon_allow (list of string)

    List of IP addresses allowed to communicate with the NTP daemon.

  • ntp_area (string)

    Defines the NTP area path. See http://support.ntp.org/bin/view/Servers/NTPPoolServers for more information.

  • ntp_daemon_servers (list of string)

    Specifies which NTP servers the daemon will listen to for updates.

  • ntp_servers (list of string)

    Specifies which NTP servers the client will listen to for updates.

  • ntp_fallback_servers (list of string)

    List of backup NTP servers the client will use if the servers in ntp_servers are unreachable.

Example Playbook

Example configuration for an NTP client

- hosts: 127.0.0.1
  connection: local
  vars:
    - ntp_enabled: True
    - ntp_timezone: Etc/UTC
    - ntp_servers:
      - ntp.domain.local
  roles:
    - ryezone_labs.ntp

Example configuration for an NTP daemon

- hosts: 127.0.0.1
  connection: local
  vars:
    - ntp_enabled: True
    - ntpd_enabled: True
    - ntp_timezone: Etc/UTC
    - ntp_area: us
    - ntp_servers:
      - 127.0.0.1
  roles:
    - ryezone_labs.ntp

License

BSD

Informazioni sul progetto

This role installs and configures ntp client and daemon software.

Installa
ansible-galaxy install ryezone_labs.ntp
Licenza
Unknown
Download
225
Proprietario