вторник, 29 мая 2018 г.

Ansible task to create vm snapshot on ESXi host without vCenter

- hosts: localhost
   tasks:
   - name: Create snapshot
     vmware_guest_snapshot:
       datacenter: esx15
       hostname: esx15.domain.local
       username: uname
       password: upass
       validate_certs: false
       name: GuestMachineName
       folder: /
       state: present
       snapshot_name: snapName
       memory_dump: false
       description: snapDescription
     delegate_to: localhost

Ansible Docs