Skip to content
Snippets Groups Projects
Commit 8a41b841 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

distinguish between Debian- and RHEL-based OSses when setting up ESXi timesync

parent b9c3d0d0
Branches
No related tags found
No related merge requests found
---
- block:
- name: purge NTPd package
apt:
name: "ntp"
......@@ -9,6 +10,20 @@
apt:
name: "open-vm-tools"
state: latest
when: ansible_os_family == "Debian"
- block:
- name: purge NTPd package
yum:
name: "ntp"
state: absent
# details can be found at sdvuda10 project, issue #2
- name: make sure open-vm-tools are installed
yum:
name: "open-vm-tools"
state: latest
when: ansible_os_family == "RedHat"
- name: make sure that 'vmware-toolbox-cmd' exists
stat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment