Skip to content

Commit

Permalink
UnixPB: Improve NTPD Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Mar 7, 2024
1 parent 2727e9e commit 124e25c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@

- name: Check If NTPD Exists In The Service Facts
set_fact:
ntpd_entry_exists: "{{ 'ntpd' in services }}"
when: services is defined
ntpd_entry_exists: "{{ 'ntpd.service' in services }}"
when: ansible_facts.services is defined
tags: ntp_time

- name: Set Fact Where NTPD Is Not Available As A Service
set_fact:
ntpd_entry_exists: "false"
when: services is not defined
when: ansible_facts.services is not defined
tags: ntp_time

- name: Display NTPD Status
Expand Down

0 comments on commit 124e25c

Please sign in to comment.