Files
fedora-infra_ansible/roles/ntp/tasks/main.yml
Michael Scherer 189260776c Move ntp setup in a role
Since base install ntp on all platforms, we can skip the vars
and place it by default (next step is to convert the
few playbooks duplicating the role)
2016-04-16 17:47:36 +00:00

28 lines
427 B
YAML

- name: install ntp
package: name=ntp state=present
tags:
- ntp
- package
- base
- name: install ntp.conf
template: src=ntp.conf.j2 dest=/etc/ntp.conf
tags:
- ntp
- config
- base
- name: install ntp step-tickers
copy: src=step-tickers dest=/etc/ntp/step-tickers
tags:
- ntp
- config
- base
- name: Start ntpd
service: name=ntpd state=running enabled=true
tags:
- ntp
- service
- base