You've already forked role_proxmox
feat: Manage container
This commit is contained in:
@@ -91,3 +91,14 @@
|
||||
current: "{{ proxmox_current_instances.proxmox_vms | map(attribute='name') | sort }}"
|
||||
expected: "{{ proxmox_node_instances.proxmox_vms | map(attribute='name') | sort }}"
|
||||
listen: Disable maintenance mode
|
||||
|
||||
- name: Restart instance
|
||||
community.proxmox.proxmox:
|
||||
api_host: "{{ proxmox_api_host }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_token_id: "{{ proxmox_api_token_id }}"
|
||||
api_token_secret: "{{ proxmox_api_token_secret }}"
|
||||
vmid: "{{ proxmox_instance_vmid }}"
|
||||
node: "{{ proxmox_instance_node }}"
|
||||
state: restarted
|
||||
delegate_to: "{{ proxmox_delegate_to }}"
|
||||
|
||||
Reference in New Issue
Block a user