Commit 28e2a09f authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: On redhat 6 the ntp service is called ntpd

parent 63b7ac92
---
- name: Install ntp - name: Install ntp
apt: name=ntp state=latest apt: name=ntp state=latest
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
...@@ -10,3 +9,8 @@ ...@@ -10,3 +9,8 @@
- name: ensure ntp is runing - name: ensure ntp is runing
service: name=ntp state=running enabled=yes service: name=ntp state=running enabled=yes
when: ansible_os_family == "Debian"
- name: ensure ntp is runing (RedHat)
service: name=ntpd state=running enabled=yes
when: ansible_os_family == "RedHat"
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment