forked from evolix/ansible-roles
24 lines
366 B
YAML
24 lines
366 B
YAML
---
|
|
- name: Remove openntpd package
|
|
ansible.builtin.apt:
|
|
name: openntpd
|
|
state: absent
|
|
tags:
|
|
- ntp
|
|
|
|
- name: Install ntp package
|
|
ansible.builtin.apt:
|
|
name: ntp
|
|
state: present
|
|
tags:
|
|
- ntp
|
|
|
|
- name: Copy ntp config
|
|
ansible.builtin.template:
|
|
src: ntp.conf.j2
|
|
dest: /etc/ntp.conf
|
|
mode: "0644"
|
|
notify: restart ntp
|
|
tags:
|
|
- ntp
|