Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: geerlingguy/ansible-role-ntp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.3.3
Choose a base ref
...
head repository: geerlingguy/ansible-role-ntp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.4.0
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 24, 2021

  1. Added {{ ntp_restrict }} to allow lines in chrony.conf.j2 to designat…

    …e NTP clients which are allowed to access the chronyd NTP server
    shl1 committed Feb 24, 2021
    Copy the full SHA
    38265be View commit details

Commits on Jan 25, 2024

  1. Copy the full SHA
    07011c0 View commit details
  2. Copy the full SHA
    d3134cc View commit details

Commits on Mar 9, 2024

  1. Merge pull request #97 from shl1/shl1_add_allow_chronyconf

    Added {{ ntp_restrict }} to allow lines in chrony.conf.j2 to designat…
    geerlingguy authored Mar 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b2ca66f View commit details
  2. Stop testing on Debian 12 temporarily.

    geerlingguy committed Mar 9, 2024
    Copy the full SHA
    435b7be View commit details
Showing with 15 additions and 9 deletions.
  1. +7 −6 .github/workflows/ci.yml
  2. +2 −2 .github/workflows/release.yml
  3. +3 −1 molecule/default/molecule.yml
  4. +3 −0 templates/chrony.conf.j2
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.ntp'

- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

@@ -41,20 +41,21 @@ jobs:
strategy:
matrix:
distro:
- rockylinux9
- rockylinux8
- ubuntu2204
- ubuntu2004
- ubuntu1804
# - debian12 # Having weird idempotence issue.
- debian11
- debian10

steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.ntp'

- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -22,12 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.ntp'

- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

4 changes: 3 additions & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -2,11 +2,13 @@
role_name_check: 1
dependency:
name: galaxy
options:
ignore-errors: true
driver:
name: docker
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3 changes: 3 additions & 0 deletions templates/chrony.conf.j2
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ rtcsync

# Allow NTP client access from local network.
#allow 192.168.0.0/16
{% for item in ntp_restrict %}
allow {{ item }}
{% endfor %}

# Serve time even if not synchronized to a time source.
#local stratum 10