24 lines
786 B
YAML
24 lines
786 B
YAML
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||
|
# Install and configure NTP
|
||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||
|
|
||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||
|
# paso1
|
||
|
# install package ntpdate
|
||
|
- name: install package ntpdate
|
||
|
apt:
|
||
|
name: "{{ ntpdate_package }}"
|
||
|
state: present
|
||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||
|
# paso2
|
||
|
# copy timesync file to crontab.hourly
|
||
|
- name: copy file nslcd.conf
|
||
|
copy:
|
||
|
src: timesync
|
||
|
dest: "{{ timesync_path }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: '0644'
|
||
|
backup: yes
|
||
|
notify: restart crontab hourly
|
||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|