iac/ansible/roles/ntp/tasks/main.yml

14 lines
233 B
YAML
Raw Normal View History

2023-08-17 04:57:58 +05:30
- name: Install ntp
become: true
ansible.builtin.apt:
update_cache: true
pkg:
- ntp
- name: Enable and start ntp service
become: true
ansible.builtin.service:
name: ntp
enabled: true
state: started