source: MondoRescue/branches/3.3/ansible/roles/ntp/tasks/main.yml@ 3674

Last change on this file since 3674 was 3674, checked in by Bruno Cornec, 7 years ago

use started keyword

File size: 535 bytes
Line 
1---
2
3- name: Check that ntp is installed
4 urpmi: name=ntp state=installed no-recommends=yes
5 tags: ntp
6
7- name: Check that ntp is configured
8 template: src={{item.src }} dest={{ item.dest }} owner=root group=root mode=0640 backup=yes
9 with_items:
10 - { src: 'templates/ntp.conf.j2', dest: '/etc/ntp.conf' }
11 - { src: 'templates/step-tickers.j2', dest: '/etc/ntp/step-tickers' }
12 notify:
13 - restart ntpd
14 tags: ntp
15
16- name: Check that ntpd is running and enabled
17 service: name=ntpd state=started enabled=yes
18 tags: ntp
Note: See TracBrowser for help on using the repository browser.