Take snapshot of a VM using quiesce and memory flag on


root@localhost ~]# cat snap.yml
---

- name: Create a VM



  hosts: localhost



  connection: local



  gather_facts: no



  tasks:
  - name: Create snapshot

    vmware_guest_snapshot:

      hostname: 192.168.0.107

      username: root

      password: vmware

      validate_certs: no

      datacenter: dc

      folder: /dc/vm

      name: tempt

      state: present
      snapshot_name: dummy_vm_snap_0001
      quiesce: True
      memory_dump: True


    delegate_to: localhost


[root@localhost ~]# ansible-playbook snap.yml

PLAY [Create a VM] ********************************************************************

TASK [Create snapshot] ****************************************************************
changed: [localhost -> localhost]

PLAY RECAP ****************************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0 

[root@localhost ~]#


https://docs.google.com/document/d/e/2PACX-1vQLXwRiC6QhDHFdiqL1sojqNyVzYsSQMLO7GLvAd-Ka9zMemmOiRqc2kqBFMXbSffND0rercmxLLXo-/pub



Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster