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

19 lines
391 B
YAML

# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
- name: Install ntp
become: true
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
pkg:
- ntp
- name: Enable and start ntp service
become: true
ansible.builtin.service:
name: ntp
enabled: true
state: started