chrony: Initial version of role

This commit is contained in:
Timo Makinen 2025-06-24 16:04:53 +00:00
parent 2bf2d4bae3
commit 41d7480acf
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
- name: Install packages
ansible.builtin.package:
name: chrony
state: installed
- name: Create config
ansible.builtin.template:
dest: /etc/chrony.conf
src: chrony.conf.j2
mode: "0644"
owner: root
group: "{{ ansible_wheel }}"
notify: Restart chronyd
- name: Enable service
ansible.builtin.service:
name: chronyd
state: started
enabled: true