- name: Playbook to install chrony hosts: all become: true gather_facts: false tasks: - name: Install Chrony apt: name: chrony state: present - name: Copy config file copy: src: chrony.conf dest: /etc/chrony/chrony.conf owner: root group: root mode: 0644 - name: chorny restart ansible.builtin.service: name: chrony state: restarted enabled: true