Skip to content

An Ansible Role to install and configure the chrony daemon on Linux

License

Notifications You must be signed in to change notification settings

acavella/ansible-role-chrony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ansible Role: Chrony

CI GitHub last commit GitHub repo size

An Ansible Role to install and configure the chrony daemon on Linux.

Requirements

Name Version Notes
Red Hat Enterprise Linux 7,8,9 NA
Ansible 2.9+ NA

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

# Specifies an NTP server which can be used as a time source.
chrony_ntp_servers: []
# Used to specify a pool of NTP servers rather than a single NTP server.
chrony_ntp_pools: []
# Specifies a symmetric association with an NTP peer instead of a client/server association with an NTP server.
chrony_ntp_peers: 
  - 192.168.0.11 iburst
  - 192.168.0.12 iburst
# Enables a local reference mode, which allows chronyd operating as an NTP server when no real time source is available.
chrony_is_local: true 
# Designate a particular subnet from which NTP clients are allowed to access the NTP server.
chrony_allow_networks:
  - 192.168.0.0/16
# Location of the file containing symmetric keys which are shared between NTP servers and clients, or peers.
chrony_keyfile: /etc/chrony.keys

Dependencies

None.

Example Playbook

- hosts: localhost
  roles:
    - { role: acavella.chrony }

License

GNU General Public License v3.0

Author Information

This role was created in 2023 by Tony Cavella

About

An Ansible Role to install and configure the chrony daemon on Linux

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages