Rev | Line | |
---|
[3655] | 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
|
---|
[3674] | 17 | service: name=ntpd state=started enabled=yes
|
---|
[3655] | 18 | tags: ntp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.