2018-12-28 11:54:06 +01:00
|
|
|
---
|
|
|
|
# Tasks file for install ntp daemon on Linux system
|
|
|
|
|
2018-12-28 13:00:01 +01:00
|
|
|
- name: Update emerge cache on Gentoo
|
2019-03-04 17:35:28 +01:00
|
|
|
become: yes
|
2018-12-28 13:00:01 +01:00
|
|
|
shell: emerge-webrsync
|
|
|
|
changed_when: false
|
|
|
|
when: ansible_os_family == "Gentoo"
|
|
|
|
|
2018-12-28 11:54:06 +01:00
|
|
|
- name: Install ntp daemon on Linux
|
2019-03-04 17:35:28 +01:00
|
|
|
become: yes
|
2018-12-28 11:54:06 +01:00
|
|
|
package:
|
|
|
|
name: "{{ ntp_package }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Service ntp on Linux
|
2019-03-04 17:35:28 +01:00
|
|
|
become: yes
|
2018-12-28 11:54:06 +01:00
|
|
|
service:
|
|
|
|
name: "{{ ntp_service }}"
|
|
|
|
enabled: yes
|
|
|
|
state: started
|