ovirt_snapshots - Module to create/delete/manage Virtual Machine Snapshots in oVirt

New in version 2.2.

Synopsis

Module to create/delete/manage Virtual Machine Snapshots in oVirt

Options

parameter required default choices comments
description
no
    Description of the snapshot.
    snapshot_id
    no
      ID of the snapshot to manage.
      state
      no present
      • inpreview
      • present
      • absent
      Should the Virtual Machine snapshot be inpreview/present/absent.
      vm_name
      yes
        Name of the Virtual Machine to manage.

        Examples

        # Examples don't contain auth parameter for simplicity,
        # look at ovirt_auth module to see how to reuse authentication:
        
        # Create snapshot of the VM
        - ovirt_snapshots:
            vm_name: rhel7
            description: MySnapshot
        register: snapshot
        
        # Preview snapshot of the VM
        - ovirt_snapshots:
            state: inpreview
            vm_name: rhel7
            snapshot_id: "{{ snapshot.id }}"
        
        # Undo snapshot of the VM
        # In case snapshot is in preview state,
        # state=absent will run undo operation
        - ovirt_snapshots:
            state: absent
            vm_name: rhel7
            snapshot_id: "{{ snapshot.id }}"
        
        # Remove snapshot of the VM
        - ovirt_snapshots:
            state: absent
            vm_name: rhel7
            snapshot_id: "{{ snapshot.id }}"
        

        This is an Extras Module

        For more information on what this means please read modules_extra

        For help in developing on modules, should you be so inclined, please read community, developing_test_pr and developing_modules.