This play is for changing the power state of a pve hosted virtual machine guest (eg stopped, restarted)
community.general
Default role variables for the pve_vm_state role are listed below (see defaults/main.yml
)
proxmox_host: 192.168.0.1
proxmox_user: root@pam
proxmox_password: password
vm_guest:
- name: vm01
state: started # options: present,stopped,started,absent,restarted,current
- ...etc...
None
- hosts: localhost
roles:
- pve_vm_state
This playbook was created in 2022 by Lee Woodhouse