xoxys.chrony/tasks/setup.yml

23 lines
466 B
YAML
Raw Normal View History

2022-04-10 15:26:44 +00:00
---
- block:
- name: Install chrony
package:
name: chrony
state: present
- name: Deploy configuration file
template:
src: etc/chrony.conf.j2
dest: /etc/chrony.conf
2022-04-10 15:38:37 +00:00
mode: 0644
2022-04-10 15:26:44 +00:00
notify: __chrony_restart
- name: Ensure service is up and running
systemd:
name: chronyd.service
state: started
daemon_reload: True
enabled: True
become: True
become_user: root