mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-14 09:13:16 +02:00
20 lines
578 B
YAML
20 lines
578 B
YAML
---
|
|
|
|
- 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
|