mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2024-09-23 23:00
This commit is contained in:
19
roles/ntp_client/tasks/facts.yml
Normal file
19
roles/ntp_client/tasks/facts.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
|
||||
- vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
|
||||
- vars/{{ ansible_distribution }}.yml
|
||||
- vars/{{ ansible_os_family }}.yml
|
||||
tags: ntp
|
||||
|
||||
- name: Check if systemd-timesyncd is available
|
||||
stat: path=/lib/systemd/systemd-timesyncd
|
||||
register: systemd_timesyncd
|
||||
tags: ntp
|
||||
|
||||
- name: Check if ntpd is installed
|
||||
stat: path=/lib/systemd/system/{{ ntp_ntpd_service }}.service
|
||||
register: ntp_unit
|
||||
tags: ntp
|
Reference in New Issue
Block a user