Skip to content

Ansible role for running ntpdate. To "force" update the time.

License

Notifications You must be signed in to change notification settings

galexrt/ansible-ntpdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-ntpdate

Build Status

Ansible role for running ntpdate.

NOTE ntp must be installed on the target servers! This role tries to stop the ntp(d) daemon (depending on the host OS) and will fail if ntp(d) is not installed.

Install

ansible-galaxy install galexrt.ansible-ntpdate

Requirements

No special requirements.

Role Variables

# defaults file for ansible-ntpdate
ntpdate_enabled: true
# how many times ntpdate should be called
ntpdate_runs: 3
# the ntp server to use for ntpdate
ntpdate_server: "0.pool.ntp.org"

Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

To use this role you add the following as the name of the role:

- hosts: servers
  roles:
    - { role: galexrt.ntpdate, ntpdate_run: true, ntpdate_runs: 5, ntpdate_server: "0.pool.ntp.org" }

License

MIT

Author Information

If you have problems with the role, feel free to create an issue on Github or contact me by mail.

About

Ansible role for running ntpdate. To "force" update the time.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published