-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] vcenter_object_move: add module to move vCenter inventory object #2346
base: main
Are you sure you want to change the base?
[WIP] vcenter_object_move: add module to move vCenter inventory object #2346
Conversation
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 14s |
fa0413d
to
684b5a3
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 46s |
684b5a3
to
c6ed128
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 43s |
c6ed128
to
b286376
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 40s |
b286376
to
9093b90
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 06s |
9093b90
to
ced45ff
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 04s |
ced45ff
to
d0aa895
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 50s |
d0aa895
to
e85aea0
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 14s |
e85aea0
to
bba9879
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 41s |
bba9879
to
7bababd
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 46s |
…ts to specified folder
7bababd
to
6ad7b63
Compare
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 29s |
SUMMARY
This commit introduces the new module
vcenter_object_move
which allows moving vCenter inventory objects (e.g., Virtual Machines, Hosts, Datastores, Networks) into a specified destination folder. The module ensures idempotence by checking if the object is already located in the target folder and supports Ansible check mode for dry-run operations. This feature simplifies inventory management in vCenter environments and aids in maintaining an organized structure.ISSUE TYPE
COMPONENT NAME
vcenter_object_move
ADDITIONAL INFORMATION
The module leverages pyVmomi to interact with the vCenter API and integrates with the existing utilities from the
community.vmware
collection. It performs the following steps:Example command output: