ansible-ops-management/tasks/chrony.yml

20 lines
477 B
YAML
Raw Normal View History

2022-02-27 03:19:20 +00:00
---
2023-08-14 07:07:25 +00:00
# Defaults are fine for chrony
2022-02-27 03:19:20 +00:00
- name: Install chrony packages
2022-03-28 05:01:23 +00:00
ansible.builtin.dnf:
2022-02-27 03:19:20 +00:00
name: "{{ chrony_packages }}"
state: present
- name: Fix permissions for chrony home directory
2022-03-28 05:01:23 +00:00
ansible.builtin.file:
2022-02-27 03:19:20 +00:00
path: "{{ chrony_homedir }}"
mode: 0750
state: directory
- name: Manage the state of service
2022-03-28 05:01:23 +00:00
ansible.builtin.systemd:
2022-02-27 03:19:20 +00:00
name: "{{ chrony_service_name }}"
state: "{{ chrony_service_state }}"
enabled: "{{ chrony_service_enabled }}"
...