2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00
bench/playbooks/roles/ntpd/tasks/main.yml

25 lines
552 B
YAML
Raw Normal View History

2017-08-29 06:51:06 +00:00
---
- name: Install ntpd
yum:
name:
- ntp
- ntpdate
state: installed
when: ansible_distribution == 'CentOS'
2017-08-29 06:51:06 +00:00
2018-02-05 09:37:14 +00:00
- name: Enable ntpd
service: name=ntpd enabled=yes state=started
when: ansible_distribution == 'CentOS'
- name: Install ntpd
apt:
pkg:
- ntp
- ntpdate
state: installed
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
2018-02-05 09:37:14 +00:00
- name: Enable ntpd
service: name=ntp enabled=yes state=started
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
2018-02-05 09:37:14 +00:00
...