vcc_caeit.ntp

Ansible Role: ntp

This is a simple role to install and set up NTP (Network Time Protocol), with options for extra configuration. Right now, we support Ubuntu 16.04 LTS, and we plan to support other LTS versions in the future.

Role Variables

Here are the variables you can use, along with their default settings (see defaults/main.yml and templates/ntp.conf.j2):

  • NTP Drift File Location: You can set where to store the drift file.

    ntp_drift_file: '/var/lib/ntp/ntp.drift'
    
  • NTP Server: By default, this is set to true. It means we will set up the default IPv4 and/or IPv6 gateway.

    ntp_server: true
    
  • Preferred NTP Servers: List the NTP servers you want to use. Note that this does not change the default NTP server setting above.

    ntp_servers:
      - ntp1
      - ntp2
      - ntp3
    
  • External NTP Pool: Set this to false if you do not want to use the NTP pool project or the default Ubuntu NTP server.

    ntp_use_external: true
    
  • Extra Configuration: Add any additional configuration lines you want. By default, it is empty.

    ntp_extra_conf: []
    

Example Playbook

Here’s an example of how to use this role:

- hosts: all
  roles:
    - vcc_caeit.ntp

License

This role is licensed under GPLv2.

Author Information

This role was created in 2018 by Nafallo Bjälevik while working on a project for Volvo Cars Corporation.

Informazioni sul progetto

NTP deployment

Installa
ansible-galaxy install vcc_caeit.ntp
Licenza
gpl-2.0
Download
4.7k
Proprietario
The CAE IT team handles HPC clusters and Linux applications at Volvo Cars