ansible-ops-management/tasks/chrony.yml
2023-08-14 00:07:25 -07:00

19 lines
477 B
YAML

---
# Defaults are fine for chrony
- name: Install chrony packages
ansible.builtin.dnf:
name: "{{ chrony_packages }}"
state: present
- name: Fix permissions for chrony home directory
ansible.builtin.file:
path: "{{ chrony_homedir }}"
mode: 0750
state: directory
- name: Manage the state of service
ansible.builtin.systemd:
name: "{{ chrony_service_name }}"
state: "{{ chrony_service_state }}"
enabled: "{{ chrony_service_enabled }}"
...