make sure all cloud instances have ntp installed, configured and running
This commit is contained in:
parent
c51ce87a0f
commit
e6a197a444
2 changed files with 22 additions and 0 deletions
|
@ -18,9 +18,21 @@
|
|||
action: yum state=installed pkg=ntpdate
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: sync time - just once
|
||||
action: command /usr/sbin/ntpdate -s -b 66.187.233.4
|
||||
|
||||
- name: ntp install
|
||||
action: yum state=installed pkg=ntp
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: put step-tickers in place
|
||||
action: copy src=$files/common/step-tickers dest=/etc/ntp/step-tickers
|
||||
|
||||
- name: enable the service
|
||||
action: service name=ntpd state=running enabled=true
|
||||
|
||||
- name: edit hostname to be instance name - prefix hostbase var if it exists
|
||||
action: shell hostname ${hostbase}`curl -s http://169.254.169.254/latest/meta-data/instance-id`
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue