community / community.general / 2.5.9 / module / proxmox_storage_info Retrieve information about one or more Proxmox VE storages | "added in version" 2.2.0 of community.general" Authors: Tristan Le Guern (@tleguern)community.general.proxmox_storage_info (2.5.9) — module
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
Retrieve information about one or more Proxmox VE storages.
- name: List existing storages community.general.proxmox_storage_info: api_host: helldorado api_user: root@pam api_password: "{{ password | default(omit) }}" api_token_id: "{{ token_id | default(omit) }}" api_token_secret: "{{ token_secret | default(omit) }}" register: proxmox_storages
- name: List NFS storages only community.general.proxmox_storage_info: api_host: helldorado api_user: root@pam api_password: "{{ password | default(omit) }}" api_token_id: "{{ token_id | default(omit) }}" api_token_secret: "{{ token_secret | default(omit) }}" type: nfs register: proxmox_storages_nfs
- name: Retrieve information about the lvm2 storage community.general.proxmox_storage_info: api_host: helldorado api_user: root@pam api_password: "{{ password | default(omit) }}" api_token_id: "{{ token_id | default(omit) }}" api_token_secret: "{{ token_secret | default(omit) }}" storage: lvm2 register: proxmox_storage_lvm
type: description: - Filter on a specifc storage type. type: str storage: aliases: - name description: - Only return informations on a specific storage. type: str api_host: description: - Specify the target host of the Proxmox VE cluster. required: true type: str api_user: description: - Specify the user to authenticate with. required: true type: str api_password: description: - Specify the password to authenticate with. - You can use C(PROXMOX_PASSWORD) environment variable. type: str api_token_id: description: - Specify the token ID. type: str version_added: 1.3.0 version_added_collection: community.general validate_certs: default: false description: - If C(no), SSL certificates will not be validated. - This should only be used on personally controlled sites using self-signed certificates. type: bool api_token_secret: description: - Specify the token secret. type: str version_added: 1.3.0 version_added_collection: community.general
proxmox_storages: contains: content: description: Proxmox content types available in this storage elements: str returned: on success type: list digest: description: Storage's digest returned: on success type: str nodes: description: List of nodes associated to this storage elements: str returned: on success, if storage is not local type: list path: description: Physical path to this storage returned: on success type: str prune-backups: description: Backup retention options elements: dict returned: on success type: list shared: description: Is this storage shared returned: on success type: bool storage: description: Storage name returned: on success type: str type: description: Storage type returned: on success type: str description: List of storage pools. elements: dict returned: on success type: list