mullholland.ntp
Ansible role ntp
Installs and configures the ntp/chrony daemon.
| 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
- pip packages listed in requirements.txt.
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:

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
Install
ansible-galaxy install mullholland.ntpLicense
apache-2.0
Downloads
108
Owner
