ntpd: Initial version of role
This commit is contained in:
parent
e1edd338aa
commit
554e3f9701
4 changed files with 35 additions and 0 deletions
16
roles/ntpd/tasks/main.yml
Normal file
16
roles/ntpd/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: Create config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/ntpd.conf
|
||||
src: ntpd.conf.j2
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: "/usr/sbin/ntpd -f %s -n"
|
||||
notify: Restart ntpd
|
||||
|
||||
- name: Enable service
|
||||
ansible.builtin.service:
|
||||
name: ntpd
|
||||
state: started
|
||||
enabled: true
|
Loading…
Add table
Add a link
Reference in a new issue