community / community.general / 8.5.0 / module / proxmox_pool_member Add or delete members from Proxmox VE cluster pools | "added in version" 7.1.0 of community.general" Authors: Sergei Antipov (@UnderGreen) <greendayonfire@gmail.com>community.general.proxmox_pool_member (8.5.0) — module
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
Create or delete a pool member in Proxmox VE clusters.
- name: Add new VM to Proxmox VE pool community.general.proxmox_pool_member: api_host: node1 api_user: root@pam api_password: password poolid: test member: 101
- name: Add new storage to Proxmox VE pool community.general.proxmox_pool_member: api_host: node1 api_user: root@pam api_password: password poolid: test member: zfs-data type: storage
- name: Remove VM from the Proxmox VE pool using VM name community.general.proxmox_pool_member: api_host: node1 api_user: root@pam api_password: password poolid: test member: pxe.home.arpa state: absent
- name: Remove storage from the Proxmox VE pool community.general.proxmox_pool_member: api_host: node1 api_user: root@pam api_password: password poolid: test member: zfs-storage type: storage state: absent
type: choices: - vm - storage default: vm description: - Member type to add/remove from the pool. type: str state: choices: - present - absent default: present description: - Indicate desired state of the pool member. type: str member: description: - Specify the member name. - For O(type=storage) it is a storage name. - For O(type=vm) either vmid or vm name could be used. required: true type: str poolid: aliases: - name description: - The pool ID. required: true 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 E(PROXMOX_PASSWORD) environment variable. type: str api_token_id: description: - Specify the token ID. - Requires C(proxmoxer>=1.1.0) to work. type: str version_added: 1.3.0 version_added_collection: community.general validate_certs: default: false description: - If V(false), 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. - Requires C(proxmoxer>=1.1.0) to work. type: str version_added: 1.3.0 version_added_collection: community.general
member: description: Member name. returned: success sample: 101 type: str msg: description: A short message on what the module did. returned: always sample: Member 101 deleted from the pool test type: str poolid: description: The pool ID. returned: success sample: test type: str