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.4.0
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.5.0
Choose a head ref
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 18, 2023

  1. Copy the full SHA
    858da8b View commit details

Commits on May 4, 2024

  1. Merge pull request #130 from Support-Green-IT-Solutions/fix_major_ver…

    …sion
    
    Update OS-specific variables in NTP role to have major version check
    geerlingguy authored May 4, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5edd7cd View commit details
  2. Fix lint issue and test Debian 12 again.

    geerlingguy committed May 4, 2024
    Copy the full SHA
    333279f View commit details
  3. Actually fix the lint issue this time.

    geerlingguy committed May 4, 2024
    Copy the full SHA
    9c06fee View commit details
Showing with 12 additions and 2 deletions.
  1. +1 −1 .github/workflows/ci.yml
  2. +4 −1 tasks/main.yml
  3. +7 −0 vars/Debian-12.yml
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ jobs:
- rockylinux8
- ubuntu2204
- ubuntu2004
# - debian12 # Having weird idempotence issue.
- debian12
- debian11

steps:
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_facts['os_family'] + '-' + ansible_facts['distribution_major_version'] }}.yml"
- "{{ ansible_facts['os_family'] }}.yml"

- name: Set the ntp_driftfile variable.
set_fact:
7 changes: 7 additions & 0 deletions vars/Debian-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
__ntp_daemon: ntpsec
ntp_tzdata_package: tzdata
__ntp_package: ntpsec
__ntp_config_file: /etc/ntpsec/ntp.conf
__ntp_driftfile: /var/lib/ntpsec/ntp.drift
ntp_cron_daemon: cron