mirror of
https://github.com/roles-ansible/ansible_role_ntp.git
synced 2024-08-16 12:59:49 +02:00
update debian and gentoo cache before installing ntp daemon
This commit is contained in:
parent
e6d7a8c66f
commit
5f880d82c5
1 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,17 @@
|
|||
---
|
||||
# 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"
|
||||
|
||||
- name: Install ntp daemon on Linux
|
||||
package:
|
||||
name: "{{ ntp_package }}"
|
||||
|
|
Loading…
Reference in a new issue