xoxys.ntp/tasks/setup_default.yml

24 lines
485 B
YAML
Raw Permalink Normal View History

2018-11-15 19:15:35 +00:00
---
- name: Setup ntp server
block:
- name: Install ntp server
package:
name: ntp
2018-12-08 14:50:45 +00:00
state: present
2018-11-15 19:15:35 +00:00
notify: __ntpd_restart
- name: Configure ntp servers
template:
src: etc/ntp.conf.j2
dest: /etc/ntp.conf
owner: root
group: root
mode: 0644
notify: __ntpd_restart
- name: Setup timezone '{{ ntp_timezone }}'
timezone:
name: "{{ ntp_timezone }}"
become: True
become_user: root