{"id":21605991,"url":"https://github.com/archf/ansible-ntpd","last_synced_at":"2026-04-28T17:03:17.015Z","repository":{"id":89975035,"uuid":"48256545","full_name":"archf/ansible-ntpd","owner":"archf","description":"Install and configure ntpd on rhel and debian hosts.","archived":false,"fork":false,"pushed_at":"2018-04-11T21:37:46.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T04:19:18.886Z","etag":null,"topics":["ansible","ntpd","role","system"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/archf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2015-12-18T21:08:08.000Z","updated_at":"2018-04-11T21:37:47.000Z","dependencies_parsed_at":"2023-05-30T18:00:35.338Z","dependency_job_id":null,"html_url":"https://github.com/archf/ansible-ntpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archf/ansible-ntpd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-ntpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-ntpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-ntpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-ntpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archf","download_url":"https://codeload.github.com/archf/ansible-ntpd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-ntpd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ntpd","role","system"],"created_at":"2024-11-24T20:18:28.320Z","updated_at":"2026-04-28T17:03:17.009Z","avatar_url":"https://github.com/archf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-ntpd\n\nInstall and configure ntpd on a target host.\n\n## Ansible requirements\n\n### Ansible version\n\nMinimum required ansible version is 1.9.\n\n### Ansible role dependencies\n\nNone.\n\n## Installation\n\n### Install with Ansible Galaxy\n\n```shell\nansible-galaxy install archf.ntpd\n```\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n    - role: archf.ntpd\n```\n\n### Install with git\n\nIf you do not want a global installation, clone it into your `roles_path`.\n\n```shell\ngit clone git@github.com:archf/ansible-ntpd.git /path/to/roles_path\n```\n\nBut I often add it as a submdule in a given `playbook_dir` repository.\n\n```shell\ngit submodule add git@github.com:archf/ansible-ntpd.git \u003cplaybook_dir\u003e/roles/ntpd\n```\n\nAs the role is not managed by Ansible Galaxy, you do not have to specify the\ngithub user account.\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n  - role: ntpd\n```\n## User guide\n\n### Introduction\n\nInstall and configure ntpd on rhel and debian hosts. This is only suitable for\nclient-server mode. Target can either be a ntpd server or a ntpd client.\n\nSettings above work well for simple ntp clients.  See `templates/ntp.conf.j2`\nfor other defaults.\n\n\n## Role Variables\n\nVariables are divided in three types.\n\nThe [default vars](#default-vars) section shows you which variables you may\noverride in your ansible inventory. As a matter of fact, all variables should\nbe defined there for explicitness, ease of documentation as well as overall\nrole manageability.\n\nThe [mandatory variables](#mandatory-variables) section contains variables that\nfor several reasons do not fit into the default variables. As name implies,\nthey must absolutely be defined in the inventory or else the role will\nfail. It is a good thing to avoid reach for these as much as possible and/or\ndesign the role with clear behavior when they're undefined.\n\nThe [context variables](#context-variables) are shown in section below hint you\non how runtime context may affects role execution.\n\n### Default vars\n\nRole default variables from `defaults/main.yml`.\n\n```yaml\n# Enable/disable ntpd service.\nntpd_enabled: yes\n\n# Stop/start ntpd service\nntpd_state: \"started\"\n\n# Define ntpd sources. The [0-3].pool.ntp.org names point to a random set of\n# servers that will change every hour.\nntpd_sources:\n  - 0.pool.ntp.org\n  - 1.pool.ntp.org\n  - 2.pool.ntp.org\n  - 3.pool.ntp.org\n\n# Install (`present', `latest'), or remove (`absent') a package.\nntpd_pkg_state: latest\n\n# Restrict statements within `ntpd_restrict` will relax defaults from\n# configuration file template which are:\n#   *restrict -4 default limited kod nomodify notrap nopeer noquery\n#   *restrict -6 default limited kod nomodify notrap nopeer noquery\n\n# By default, client hosts on local network are less restricted. Override this\n# for more specifics needs. Elements of this list will be literally inserted\n# into ntp.conf. You could define defaults for those for each of your dev,\n# staging and production environnement and also create groups for your stratum\n# servers.\nntpd_restrict:\n  - restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap nopeer\n  - restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap nopeer\n  - restrict 172.16.0.0 mask 255.240.0.0 nomodify notrap nopeer\n\n# no stats logging\nntpd_log_stats: no\n\n# undefined crypto settings\n# ntpd_crypto: ''\n\n```\n\n### Mandatory variables\n\nNone.\n\n### Context variables\n\nThose variables from `vars/*.{yml,json}` are loaded dynamically during task\nruntime using the `include_vars` module.\n\nVariables loaded from `vars/Suse.yml`.\n\n```yaml\nntpd_pkgs:\n  - python-selinux\n  - ntp\n\nntpd_svc_name: ntp\n\n# Deliberately left indefined.\n# see https://bugzilla.novell.com/show_bug.cgi?id=542098\n# ntpd_keysfile: \"/etc/ntp.keys\"\n\n```\n\nVariables loaded from `vars/Debian.yml`.\n\n```yaml\nntpd_pkgs:\n  - ntp\n\nntpd_svc_name: ntp\n\nntpd_keysfile: \"/etc/ntp/keys\"\n\n```\n\nVariables loaded from `vars/RedHat.yml`.\n\n```yaml\nntpd_pkgs:\n  - ntp\n\nntpd_svc_name: ntpd\n\nntpd_keysfile: \"/etc/ntp/keys\"\n\n```\n\n## Todo\n\nYou want to contribute? Here's a wishlist:\n\n  * peer support?\n  * improve statistics configuration\n\nConsider opening an issue to share your intent and avoid work duplication!\n\n## License\n\nBSD.\n\n## Author Information\n\nFelix Archambault.\n\n---\nPlease do not edit this file. This role `README.md` was generated using the\n'ansidoc' python tool available on pypi!\n\n*Installation:*\n\n```shell\npip3 install ansidoc\n```\n\n*Basic usage:*\n\nValidate output by running a dry-run (will output result to stdout)\n```shell\nansidoc --dry-run \u003crolepath\u003e\n```\n\nGenerate you role readme file. Will write a `README.md` file under\n`\u003crolepath\u003e/README.md`.\n```shell\nansidoc \u003crolepath\u003e\n```\n\nAlso usable programatically from Sphinx.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-ntpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchf%2Fansible-ntpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-ntpd/lists"}