buluma.ntp
Ansible Role ntp
This role installs and sets up NTP (Network Time Protocol) on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here's a simple example from molecule/default/converge.yml
. It's tested whenever there's a push, pull request, or release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.cron
- role: buluma.ntp
ntp_state: stopped
Make sure your machine is ready. In CI (Continuous Integration), this uses molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
You can find a more detailed explanation and example here.
Role Variables
Default variable values are in defaults/main.yml
:
---
# defaults for ntp
# NTP service state.
ntp_state: started
# Whether NTP service starts on boot.
ntp_enabled: true
# IP addresses to listen on.
ntp_interfaces:
- address: "127.0.0.1"
# List of NTP pools with options.
ntp_pool:
- name: "0.pool.ntp.org iburst"
- name: "1.pool.ntp.org iburst"
- name: "2.pool.ntp.org iburst"
- name: "3.pool.ntp.org iburst"
# List of NTP servers with options.
# ntp_server:
# - name: ntp.example.com
# options:
# - iburst
# Timezone setting.
ntp_timezone: Etc/UTC
Requirements
- Additional pip packages are listed in requirements.txt.
State of Used Roles
These roles help prepare the system. You can prepare it differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.cron |
Context
This role is part of a set of compatible roles. Check the documentation for these roles for more details.
Here are some related roles:
Compatibility
This role works on these container images:
Container | Tags |
---|---|
Amazon | Candidate |
EL | 8 |
Debian | all |
Fedora | all |
Ubuntu | all |
Ansible version 2.12 or higher is required for this role. Testing has been done for:
- The previous version.
- The current version.
- The development version.
If you find any issues, please report them on GitHub.
Changelog
License
Author Information
ansible-galaxy install buluma.ntp