17 lines
440 B
YAML
17 lines
440 B
YAML
|
---
|
||
|
- hosts: yum
|
||
|
tasks:
|
||
|
|
||
|
- name: Install Chrony
|
||
|
ansible.builtin.yum: name=chrony state=latest
|
||
|
|
||
|
- name: Copy config file
|
||
|
ansible.builtin.copy: src=chrony.conf dest=/etc/chrony.conf mode=0644 owner=root group=root backup=yes
|
||
|
|
||
|
- name: Restart Chrony with new config
|
||
|
ansible.builtin.service: name=chronyd state=restarted
|
||
|
|
||
|
- name: Start Chrony at boot
|
||
|
ansible.builtin.service: name=chronyd enabled=yes
|
||
|
|