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