Skip to content

Commit

Permalink
Merge pull request #130 from Support-Green-IT-Solutions/fix_major_ver…
Browse files Browse the repository at this point in the history
…sion

Update OS-specific variables in NTP role to have major version check
  • Loading branch information
geerlingguy authored May 4, 2024
2 parents 435b7be + 858da8b commit 5edd7cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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:
Expand Down
6 changes: 6 additions & 0 deletions vars/Debian_12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__ntp_daemon: ntpsec

Check warning on line 1 in vars/Debian_12.yml

View workflow job for this annotation

GitHub Actions / Lint

1:1 [document-start] missing document start "---"
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

Check failure on line 6 in vars/Debian_12.yml

View workflow job for this annotation

GitHub Actions / Lint

6:22 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 5edd7cd

Please sign in to comment.