migrate from github

This commit is contained in:
donotos
2021-09-05 19:31:17 +02:00
commit 4151d0b348
10 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Create/Remove snapshot without ram.
hosts: all
tasks:
- name: On crée/supprime un snapshot sur la VM
community.vmware.vmware_guest_snapshot:
hostname: "{{ lookup('env', 'VMWARE_HOST') }}"
username: "{{ lookup('env', 'VMWARE_USER') }}"
password: "{{ lookup('env', 'VMWARE_PASSWORD') }}"
datacenter: "{{ esxi_host }}"
uuid: "{{ vm_uuid }}"
state: "{{ snap_state }}"
snapshot_name: "{{ snap_name }}"
description: "{{ snap_descr }}"
delegate_to: localhost