install.fairie/home/dot_local/share/ansible/playbooks/qubes-reset.yml

15 lines
508 B
YAML
Raw Normal View History

2023-07-15 22:40:26 -07:00
---
- name: Remove the VMs added by Gas Station
hosts: all:sys-vpn-pritunl:sys-vpn-proton:sys-vpn-tailscale:sys-vpn-warp:!system-vms:!primary-templates:!dom0
connection: qubes
gather_facts: false
tasks:
- name: 'Remove {{ inventory_hostname }}'
delegate_to: dom0
shell:
cmd: |
if qvm-check {{ inventory_hostname }}; then
qvm-shutdown --force --wait {{ inventory_hostname }} || EXIT_CODE=$?
qvm-remove -f {{ inventory_hostname }}
fi