GithubHelp home page GithubHelp logo

ruzickap / ansible-role-vmwaretools Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 24.0 138 KB

Ansible role will help you with installing original vmware-tools form Vmware or fallback to Open VMware Tools (open-vm-tools)

License: MIT License

Shell 100.00%
ansible ansible-playbook ansible-role role vmware vmwaretools

ansible-role-vmwaretools's Introduction

ansible-role-vmwaretools's People

Contributors

dependabot[bot] avatar kadecole avatar kmonticolo avatar lr1980 avatar my-renovate[bot] avatar ruzickap avatar steinbrueckri avatar ultransible avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-vmwaretools's Issues

Falls back to openvmtools

I want to apply this role on Debian Jessie amd64 with internet connection -
but the open-vm-tools fallback is tried instead.

TASK [peru.vmwaretools : include] **********************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}

TASK [peru.vmwaretools : include] **********************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}

TASK [peru.vmwaretools : include] **********************************************
included: /etc/ansible/roles/peru.vmwaretools/tasks/Debian.yml for localhost

TASK [peru.vmwaretools : Installing Open VMware Tools (open-vm-tools).] ********
[...]

EDIT: Apparently it will only install open-vm-tools for Debian:
https://github.com/ruzickap/ansible-role-vmwaretools/blob/master/tasks/Debian.yml#L4

But VMware Tools can be installed on Debian, too. Will this be added in near future?

Package at packages.vmware.com..etc. could not be installed

The requested file was http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.0.15-1.el6.x86_64.rpm and it doesn't exist on that server.

All is well up until this point...

TASK: [peru.vmwaretools | Install vmware-tools repository.] *******************
failed: [ans01] => {"changed": false, "failed": true, "rc": 1}
msg: Package at http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.0.15-1.el6.x86_64.rpm could not be installed

FATAL: all hosts have already failed -- aborting

Not sure of the best way to deal with this but I changed the following line from
vmwaretools_repo_version: 9.0.15-1
to
vmwaretools_repo_version: 9.10.1-1

These tasks then worked like a treat. This hasn't been checked for other ditributions nor other release is of Centos6/ RHEL6. I could be persuaded to maintain this as part of my work, assuming that there is demand for this project.

'vmwaretools_repo_version' errors

I'm getting this error while trying to deploy vmware tools to SLES11. I tried to enter 10.3.5-1 manually into /defaults/main.yml but it only makes it worse

TASK [ruzickap.vmwaretools : Install vmware-tools repository for SLES 11] 

FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'vmwaretools_repo_version' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/ruzickap.vmwaretools/tasks/Suse.yml': line 20, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  block:\n    - name: Install vmware-tools repository for SLES 11\n      ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'vmwaretools_repo_version' is undefined"}

The RHEL/Centos task also gives an error while checking 'vmwaretools_repo_version':

TASK [ruzickap.vmwaretools : Get details about repository package version if vmwaretools_repo_version is undefined]

fatal: [.....]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ vmwaretools_web_page.content | regex_findall('vmware-tools-repo-RHEL' + ansible_distribution_major_version|string + '-(.*).el' + ansible_distribution_major_version|string + '.' + ansible_architecture + '.rpm') | first | string }}): expected string or buffer"}

Can i fix the problem myself or is it a general problem?

Fails if open-vm-tools is already installed

This is failing to run on my server because open-vm-tools is already installed. My suggestion is to add a test for open-vm-tools first. Or make an option for open-vm-tools or vmware tools to install so you could select which version/distribution you would like to use instead of the fallback method you are using now.

Add branch for ansible 2.3 support

Hi guys,

since your 2 last commits, I'm not able to use your role anymore because I don't have ansible 2.4 .
Cause I'm using ansible 2.3, I'm not able to use 'import_tasks' by I still need to use 'include' instead.

Can you create a branch of your project for ansible 2.3 , based on the commit 42d6b75 ?

Thank you guys !

ini_file module usage in ansible/AWX

ERROR! couldn't resolve module/action 'ini_file'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/requirements_roles/ruzickap.vmwaretools/tasks/RedHat.yml': line 25, column 7, but may

Newer versions should be using community.general.ini_file with a dependency on the community.general collection.

Installing vmware tools from repo fails during GPG check

During yum install of official vmware tools(vmware-tools-esx-nox, vmware-tools-esx-kmods) yum fails with a GPG check, prompting user if they want to verify key. I got the task to complete successfully by adding the following param to the yum task (disable_gpg_check: yes).

  • name: Install vmware-tools.
    yum: name={{ item }} state=present
    with_items:
    • vmware-tools-esx-nox
    • vmware-tools-esx-kmods
      disable_gpg_check: yes
      when: ansible_distribution_major_version|int <= 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.