devops.chrony
Ansible Role: Chrony
Installs and configures chrony.
Requirements
None.
Role Variables
defaults/main.yml
chrony_packages:- chronychrony_config_server:- ntp.api.bzchrony_config_allow: []chrony_config_logdir: '/var/log/chrony'
vars/RedHat.yml
chrony_service_name: chronydchrony_config_location: /etc/chrony.conf
Dependencies
None.
Example Playbook
Install chrony and use the default settings.
- hosts: all
roles:
- ansible-role-chrony
- hosts: all
roles:
Install chrony and use custom servers.
- hosts: all
roles:
- role: ansible-role-chrony
chrony_config_server:
- ntp.pi.bz chrony_config_allow:
- 192.168.1/24
- role: ansible-role-chrony
chrony_config_server:
- hosts: all
roles:
License
MIT / BSD
Author Information
z.
