New in version 2.0.
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| datacenter | yes | The datacenter on the vCenter server that holds the datastore. | ||
| datastore | yes | The datastore on the vCenter server to push files to. | ||
| host | yes | The vCenter server on which the datastore is available. | ||
| login | yes | The login name to authenticate on the vCenter server. | ||
| password | yes | The password to authenticate on the vCenter server. | ||
| path | yes | The file to push to the datastore on the vCenter server. | ||
| src | yes | The file to push to vCenter | ||
| validate_certs | no | yes |
| If no, SSL certificates will not be validated. This should only be set to no when no other option exists. |
- vsphere_copy:
host: vhost
login: vuser
password: vpass
src: /some/local/file
datacenter: DC1 Someplace
datastore: datastore1
path: some/remote/file
transport: local
- vsphere_copy:
host: vhost
login: vuser
password: vpass
src: /other/local/file
datacenter: DC2 Someplace
datastore: datastore2
path: other/remote/file
delegate_to: other_system
Note
transport: local or using delegate_to.This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/vsphere_copy_module.html