I am trying to install VMware Tools on various OS on my guest machines. This is the code I have now.
---
- hosts: all
tasks:
- name: debian | installing open-vm-tools
apt: name=open-vm-tools state=present
when: ansible_os_family == "Debian"
- name: install vmware tools via Chocolatey
win_chocolatey: name=vmware-tools state=present
when: ansible_distribution == "Windows"
This is what my hosts.ini file looks like:
[my-host]
myhost.com ansible_ssh_pass=mypw ansible_ssh_user=root
This is the command I am using to run it. Which works.
ansible-playbook -i hosts.ini vmwaretools.yml
However, this is the message I get after I run it.
ok: [myhost.com]
TASK [debian | installing open-vm-tools] *************************************** task path: /Users/Desktop/Ansible/vmwaretools.yml:5 skipping: [myhost.com] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}TASK [install vmware tools via Chocolatey] ************************************* task path: /Users/Desktop/Ansible/vmwaretools.yml:9 skipping: [myhost.com] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
PLAY RECAP ********************************************************************* myhost.com : ok=1 changed=0 unreachable=0
failed=0
Why does it say conditional fail checked? I am sure I have VMs with Debian and Windows running. Any idea why this is happening?