https://github.com/stuvusit/ansible_systemd_timesyncd
Ansible role to set timezone and configure systemd-timesyncd
https://github.com/stuvusit/ansible_systemd_timesyncd
ansible ansible-role systemd timesyncd
Last synced: 9 months ago
JSON representation
Ansible role to set timezone and configure systemd-timesyncd
- Host: GitHub
- URL: https://github.com/stuvusit/ansible_systemd_timesyncd
- Owner: stuvusIT
- License: other
- Created: 2017-08-10T18:11:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T20:10:01.000Z (over 2 years ago)
- Last Synced: 2024-02-03T21:23:22.648Z (over 2 years ago)
- Topics: ansible, ansible-role, systemd, timesyncd
- Size: 22.5 KB
- Stars: 16
- Watchers: 5
- Forks: 22
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# systemd-timesyncd
This role sets the timezone and configures and enables systemd-timesyncd.
## Requirements
systemd
## Role Variables
| Name | Default/Required | Description |
| ---------------------------------- | :-------------------: | --------------------------------------------------------------------------------- |
| `timesync_timezone` | `Etc/UTC` | Timezone to set (relative to `/usr/share/zoneinfo`) |
| `timesync_ntp_hosts` | | Array of NTP hosts |
| `timesync_fallback_ntp_hosts` | `{0..3}.pool.ntp.org` | Array of fallback NTP hosts |
| `timesync_write_hwclock_on_change` | `True` | Whether to write the time to the hardware clock after changing the configuration. |
## Dependencies
None
## Example Playbook
```yml
- hosts: all
roles:
- systemd-timesyncd
timesync_timezone: Europe/Berlin
timesync_ntp_hosts:
- some.ntp.host
- another.ntp.host
```
## License
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).
## Author Information
- [Janne Heß](https://github.com/dasJ)