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

on ubuntu ntpd is called ntp

parent f25940e2
No related branches found
No related tags found
1 merge request!293Ubuntu
......@@ -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