rename vmware_create_snapshot.yml to vmware_snapshot.yml

This commit is contained in:
donotos
2021-09-05 22:24:36 +02:00
parent 0b663c09e9
commit 1efd08c76e

16
vmware_snapshot.yml Normal file
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