Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.proxmox_template.
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| api_host string / required | the host of the Proxmox VE cluster | |
| api_password string | the password to authenticate with you can use PROXMOX_PASSWORD environment variable | |
| api_user string / required | the user to authenticate with | |
| content_type string |
| content type required only for state=present
|
| force boolean |
| can be used only with state=present, exists template will be overwritten |
| node string / required | Proxmox VE node, when you will operate with template | |
| src path | path to uploaded file required only for state=present
| |
| state string |
| Indicate desired state of the template |
| storage string | Default: "local" | target storage |
| template string | the template name required only for states absent, info
| |
| timeout integer | Default: 30 | timeout for operations |
| validate_certs boolean |
| enable / disable https certificate verification |
Note
- name: Upload new openvz template with minimal options
community.general.proxmox_template:
node: uk-mc02
api_user: root@pam
api_password: 1q2w3e
api_host: node1
src: ~/ubuntu-14.04-x86_64.tar.gz
- name: >
Upload new openvz template with minimal options use environment
PROXMOX_PASSWORD variable(you should export it before)
community.general.proxmox_template:
node: uk-mc02
api_user: root@pam
api_host: node1
src: ~/ubuntu-14.04-x86_64.tar.gz
- name: Upload new openvz template with all options and force overwrite
community.general.proxmox_template:
node: uk-mc02
api_user: root@pam
api_password: 1q2w3e
api_host: node1
storage: local
content_type: vztmpl
src: ~/ubuntu-14.04-x86_64.tar.gz
force: yes
- name: Delete template with minimal options
community.general.proxmox_template:
node: uk-mc02
api_user: root@pam
api_password: 1q2w3e
api_host: node1
template: ubuntu-14.04-x86_64.tar.gz
state: absent
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/proxmox_template_module.html