1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/tasks/packages/setup-Linux.yml

25 lines
519 B
YAML
Raw Normal View History

2018-12-28 11:54:06 +01:00
---
# Tasks file for install ntp daemon on Linux system
- name: Update apt cache on Debian Family os
apt:
update_cache: yes
changed_when: false
when: ansible_os_family == "Debian"
- name: Update emerge cache on Gentoo
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
package:
name: "{{ ntp_package }}"
state: present
- name: Service ntp on Linux
service:
name: "{{ ntp_service }}"
enabled: yes
state: started