Skip to content

This play is for changing the power state of a pve hosted virtual machine guest (eg stopped, restarted)

License

Notifications You must be signed in to change notification settings

lpwoodhouse/proxmox_vm_state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox Change VM Guest Power State

proxmox playbook GitHub last commit GitHub repo file count GitHub top language GitHub

Purpose

This play is for changing the power state of a pve hosted virtual machine guest (eg stopped, restarted)

Requirements

community.general

Role Variables

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...

Dependencies

None

Example Playbook

    - hosts: localhost
      roles:
        - pve_vm_state

Author Information

This playbook was created in 2022 by Lee Woodhouse

About

This play is for changing the power state of a pve hosted virtual machine guest (eg stopped, restarted)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages