From af3f9c4c915edf1f4bd5b4bb878262112466beeb Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 17 Nov 2022 00:02:19 +0100 Subject: [PATCH] improve ntp readme --- README.md | 18 ++++++------------ templates/ntp.conf.j2 | 4 ++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 21cdd7b..4790853 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ ntp_servers: - 2.pool.ntp.org iburst - 3.pool.ntp.org iburst +# optionally set timezone +ntp_set_time_zone: false +ntp_timezone: 'Europe/Berlin' + # Enable or disable ntp statistics ntp_statistics: false @@ -48,15 +52,5 @@ submodules_versioncheck: false This role was created in 2018 by diodonfrost. This role was updated and maintained since 2019 by L3D *([DO1JLR](https://github.com/do1jlr))* -## Testing - -This role is using some github actions for testing. Because systemd operations inside docker containers do not work verry well only linting is tested. -If you have a idea how to improve the testing please leave a comment, create a issue or even better open a pull request. - -We use these actions for testing: - -| Status | Marketplace | -| ------ | ----------- | -| [![Ansible Lint check](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/ansible-linting-check.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/ansible-linting-check.yml) | [ansible-lint](https://github.com/marketplace/actions/ansible-lint) | -| [![Yamllint GitHub Actions](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/yamllint.yaml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/yamllint.yaml) | [yamllint-github-action](https://github.com/marketplace/actions/yamllint-github-action) | -| [![Galaxy release](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/galaxy.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_ntp/actions/workflows/galaxy.yml) | [publish-ansible-role-to-galaxy](https://github.com/marketplace/actions/publish-ansible-role-to-galaxy) +## Contribution +Pleas feel free to open a issue or *(even better)* create a Pull Request if there is a problem or you missing a feature or something like that. diff --git a/templates/ntp.conf.j2 b/templates/ntp.conf.j2 index 41c141c..3808ca7 100644 --- a/templates/ntp.conf.j2 +++ b/templates/ntp.conf.j2 @@ -2,10 +2,10 @@ ## ## ## THIS FILE IS MANAGED BY ANSIBLE ## ## ## -## It is about time ## +## It is about time ## ## ## ##################################### - +# > galaxy.ansible.com/do1jlr/ntp < # driftfile {{ ntp_driftfile }} {% for restrict_ip in ntp_restrict %}