xoxys.ntp/tasks/setup_default.yml

24 lines
487 B
YAML
Raw Normal View History

2018-11-15 19:15:35 +00:00
---
- name: Setup ntp server
block:
- name: Install ntp server
package:
name: ntp
state: installed
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