mullholland.ntp

Ansible role ntp

Installs and configures the ntp/chrony daemon.

GitHub Downloads Version
github downloads Version

Example Playbook

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  vars:
    # Molecule tests sometime fail with chronyd in the container
    # so we disable it for testing
    ntp_state: "stopped"
    ntp_enabled: "false"
  roles:
    - role: "mullholland.ntp"

Role Variables

The default values for the variables are set in defaults/main.yml:

---
ntp_servers:
 - 0.de.pool.ntp.org iburst
 - 1.de.pool.ntp.org iburst
 - 2.de.pool.ntp.org iburst
 - 3.de.pool.ntp.org iburst

# Manage the ntp/chronyd daemon
ntp_state: started
ntp_enabled: true

Requirements

Context

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

container tags
EL all
Amazon Candidate
Fedora all
Ubuntu all
Debian all

The minimum version of Ansible required is 2.10, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub.

License

MIT.

Author Information

Mullholland

About

Installs and configures the ntp/chrony daemon.

Install
ansible-galaxy install mullholland.ntp
GitHub repository
License
apache-2.0
Downloads
108