Robert Kaussow
013988d5bb
All checks were successful
continuous-integration/drone/push Build is passing
34 lines
722 B
YAML
34 lines
722 B
YAML
---
|
|
- block:
|
|
- name: Install chrony
|
|
package:
|
|
name: chrony
|
|
state: present
|
|
|
|
- name: Deploy configuration file
|
|
template:
|
|
src: etc/chrony.conf.j2
|
|
dest: /etc/chrony.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: __chrony_restart
|
|
|
|
- name: Deploy sysconfig file
|
|
template:
|
|
src: etc/sysconfig/chronyd.j2
|
|
dest: /etc/sysconfig/chronyd
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
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
|