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

20 lines
391 B
YAML
Raw Normal View History

2023-08-17 05:06:47 +05:30
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
2023-08-17 05:04:41 +05:30
---
2023-08-17 04:57:58 +05:30
- name: Install ntp
become: true
ansible.builtin.apt:
update_cache: true
2023-11-19 01:51:00 +05:30
cache_valid_time: 3600
2023-08-17 04:57:58 +05:30
pkg:
- ntp
- name: Enable and start ntp service
become: true
ansible.builtin.service:
name: ntp
enabled: true
state: started