zen_ntp/tasks/main.yml
Chris Hammer ea2a253234 0.1.0-DEV-20200429-233815
-------------------------
    * INITIAL:
      - initial commit for zen_ntp ansible role
2020-04-29 23:40:42 -04:00

26 lines
478 B
YAML

---
# tasks file for zen_ntp
- name: install ntp if not present
package:
name : ntp
state : present
- name: deploy {{ ntp_conf_file }}
template:
src: templates/ntp_conf.j2
dest: "{{ ntp_conf_file }}"
mode: 0644
owner: root
group: root
notify: restart ntpd
- name: enable/start ntpd
service:
name: ntpd
enabled: yes
state: started
when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker"