Skip to content

ben-eddy74/ansible_vmware_wpro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Collection - ben_eddy74.vmware_wpro

Documentation for the collection.

Modules

vmware_wpro_info: provides information about VMware Workstation Pro options: inventory: yes -> include inventory data preferences: yes -> include preferences/settings

vmware_wpro_clone: clone a virtual machine to a new virtual machine options: name: name of the new vm template: name of the vm to be cloned snapshot: clone a snapshot of template clone: full or linked

vmware_wpro_vm_power: power commands options: name: name of the vm to manage state: started | stopped | reset | paused | unpaused startwith: gui, nogui (used by started) force: true, false (used by stopped and reset)

Dev

To test a module during development, use the following command from the collection folder:

ANSIBLE_LIBRARY=./plugins ansible -m vmware_wpro_info localhost

To provide arguments:

ANSIBLE_LIBRARY=./plugins ansible -m vmware_wpro_info -a "inventory=yes preferences=yes" localhost

In case of modifications in module_utils, deploy the collection first before testing the module:

ansible-galaxy collection build --force
ansible-galaxy collection install . --force

To avoid going through Ansible, another way is to create an arguments file in the tests folder and run the following command from the collection's plugins folder:

 python -m modules.vmware_wpro_info ../tests/info.json  | jq

Preprod

To test a module from a playbook, build and install the module first:

ansible-galaxy collection build --force
ansible-galaxy collection install . --force

Then the module can be used from a playbook:

ansible-playbook test.yml -vvv

https://www.sanbarrow.com/vmx.html

About

Collection of modules to manage VMware Workstation Pro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published