ansible-roles/ntpd/tasks/main.yml
David Prevot fafff25c20
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Add “when: not ansible_check_mode” to allow more --check
2022-12-02 17:40:43 +01:00

25 lines
349 B
YAML

---
- name: Remove openntpd package
apt:
name: openntpd
state: absent
tags:
- ntp
- name: Install ntp package
apt:
name: ntp
state: present
tags:
- ntp
- name: Copy ntp config
template:
src: ntp.conf.j2
dest: /etc/ntp.conf
mode: "0644"
notify: restart ntp
tags:
- ntp
when: not ansible_check_mode