{"id":13583845,"url":"https://github.com/geerlingguy/ansible-role-ntp","last_synced_at":"2025-04-04T08:09:34.407Z","repository":{"id":14725032,"uuid":"17445728","full_name":"geerlingguy/ansible-role-ntp","owner":"geerlingguy","description":"Ansible Role - NTP","archived":false,"fork":false,"pushed_at":"2024-07-16T19:22:43.000Z","size":113,"stargazers_count":319,"open_issues_count":4,"forks_count":240,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-10T04:06:31.136Z","etag":null,"topics":["ansible","ntp","role","synchronization","time","time-server"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/ntp/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-03-05T15:49:42.000Z","updated_at":"2024-09-21T08:41:37.000Z","dependencies_parsed_at":"2023-02-10T03:35:11.378Z","dependency_job_id":"129f1b84-3cba-40e2-a4fa-1bc03085b3ba","html_url":"https://github.com/geerlingguy/ansible-role-ntp","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-ntp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-ntp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-ntp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-ntp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-ntp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142074,"owners_count":20890653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ntp","role","synchronization","time","time-server"],"created_at":"2024-08-01T15:03:50.712Z","updated_at":"2025-04-04T08:09:34.391Z","avatar_url":"https://github.com/geerlingguy.png","language":"Jinja","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Jinja","role"],"sub_categories":[],"readme":"# Ansible Role: NTP\n\n[![CI](https://github.com/geerlingguy/ansible-role-ntp/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-ntp/actions/workflows/ci.yml)\n\nInstalls NTP on Linux.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n    ntp_enabled: true\n\nWhether to start the ntpd service and enable it at system boot. On many virtual machines that run inside a container (like OpenVZ or VirtualBox), it's recommended you don't run the NTP daemon, since the host itself should be set to synchronize time for all its child VMs.\n\n    ntp_timezone: Etc/UTC\n\nSet the timezone for your server.\n\n    ntp_package: ntp\n\nThe package to install which provides NTP functionality. The default is `ntp` for most platforms, or `chrony` on RHEL/CentOS 7 and later.\n\n    ntp_daemon: [various]\n\nThe default NTP daemon should be correct for your distribution, but there are some cases where you may want to override the default, e.g. if you're running `ntp` on newer versions of RHEL/CentOS.\n\n    ntp_config_file: /etc/ntp.conf\n\nThe path to the NTP configuration file. The default is `/etc/ntp.conf` for most platforms, or `/etc/chrony.conf` on RHEL/CentOS 7 and later.\n\n    ntp_manage_config: false\n\nSet to true to allow this role to manage the NTP configuration file (`/etc/ntp.conf`).\n\n    ntp_driftfile: [various]\n\nThe default NTP driftfile should be correct for your distribution, but there are some cases where you may want to override the default.\n\n    ntp_area: ''\n\nSet the [NTP Pool Area](http://support.ntp.org/bin/view/Servers/NTPPoolServers) to use. Defaults to none, which uses the worldwide pool.\n\n    ntp_servers:\n      - \"0{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst\"\n      - \"1{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst\"\n      - \"2{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst\"\n      - \"3{{ '.' + ntp_area if ntp_area else '' }}.pool.ntp.org iburst\"\n\nSpecify the NTP servers you'd like to use. Only takes effect if you allow this role to manage NTP's configuration, by setting `ntp_manage_config` to `True`.\n\n    ntp_restrict:\n      - \"127.0.0.1\"\n      - \"::1\"\n\nRestrict NTP access to these hosts; loopback only, by default.\n\n    ntp_cron_handler_enabled: false\n\nWhether to restart the cron daemon after the timezone has changed.\n\n    ntp_tinker_panic: true\n\nEnable tinker panic, which is useful when running NTP in a VM.\n\n    ntp_chrony_maxdistance: '3'\n\nIncrease the maximum root distance between the host \u0026 the ntp source.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: all\n      roles:\n        - geerlingguy.ntp\n\n*Inside `vars/main.yml`*:\n\n    ntp_timezone: America/Chicago\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-ntp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-ntp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-ntp/lists"}