-
Notifications
You must be signed in to change notification settings - Fork 346
vcenter_object_move: add module to move vCenter inventory object #2346
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
base: main
Are you sure you want to change the base?
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 |
7bababd to
6ad7b63
Compare
|
Build failed. ✔️ ansible-tox-linters SUCCESS in 5m 29s |
…ts to specified folder
6ad7b63 to
753186a
Compare
|
Build failed. ❌ ansible-tox-linters FAILURE in 5m 00s Warning: |
753186a to
ce0962c
Compare
|
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 5m 04s |
- Replace deprecated ansible.module_utils._text import with ansible.module_utils.common.text.converters - Use base_argument_spec from vmware.vmware collection - Update documentation fragment to vmware.vmware.base_options - Add changelog fragment for new vcenter_object_move module
ce0962c to
7f735bf
Compare
|
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 5m 36s |
SUMMARY
This commit introduces the new module
vcenter_object_movewhich 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.vmwarecollection. It performs the following steps:Example command output: