Skip to content
Snippets Groups Projects
Commit 96d64307 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

on ubuntu ntpd is called ntp

Former-commit-id: 721fce1e
parent 9ef23236
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,29 @@
become: true
become_user: root
- name: restart ntpd
- name: restart ntpd redhat
service: name=ntpd state=restarted
become: true
become_user: root
when: ansible_os_family == "RedHat"
- name: ensure ntpd is enabled and started
- name: ensure ntpd is enabled and started redhat
service: name=ntpd state=started enabled=yes
become: true
become_user: root
when: ansible_os_family == "RedHat"
- name: restart ntpd ubuntu
service: name=ntp state=restarted
become: true
become_user: root
when: ansible_os_family == "Debian"
- name: ensure ntpd is enabled and started ubuntu
service: name=ntp state=started enabled=yes
become: true
become_user: root
when: ansible_os_family == "Debian"
- name: set local timezone
file: path=/etc/localtime state=link src={{ TIMEZONE_PATH }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment