On Windows 10, Hyper-V is installed, in which a test vm with Alpine Linux is created.
Tell me how to manage (enable / disable) with Ansible?

  • Have you tried to manage somehow already? - 0-Level UNIX Monk
  • As I understand it, there is no module for managing Hyper-V, but you can run powershell scripts Strat-VM -Name <namevm> - Magi

1 answer 1

- name: Start Hyper-V VM win_shell: Start-VM -Name <namevm>