Skip to content

Ovski4/ansible-simplivity-backup-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Ansible simplivity backup module

This module can be used to create, delete or restore virtual machine backups using the HPE SimpliVity OmniStack REST API.

Setup

Clone this repo and place the simplivity_backup.py file in the folder of your choice among ~/.ansible/plugins/modules/, /usr/share/ansible/plugins/modules/ or even a library folder within a role. Detailed explanation are available directly from the docs

Usage in tasks

- name: Ensure a simplivity backup is present for the current day
  simplivity_backup:
    backup_name: "Created by Ansible the {{ lookup('pipe','date +%Y-%m-%d') }}"
    omnistack_host: "omnistack_host@your_domain.net"
    virtual_machine_name: "your_vm_name"
    username: "your_username"
    password: "your_password"
    app_consistent: "true"
    retention: 10080 # 7 days
    state: "present"
  delegate_to: localhost
- name: Ensure no simplivity backup is present for the current day
  simplivity_backup:
    backup_name: "Created by Ansible the {{ lookup('pipe','date +%Y-%m-%d') }}"
    omnistack_host: "omnistack_host@your_domain.net"
    virtual_machine_name: "your_vm_name"
    username: "your_username"
    password: "your_password"
    state: "absent"
  delegate_to: localhost
- name: Restore a simplivity backup
  simplivity_backup:
    backup_name: "Created by Ansible before perilous operation"
    omnistack_host: "omnistack_host@your_domain.net"
    virtual_machine_name: "your_vm_name"
    username: "your_username"
    password: "your_password"
    state: "restored"
  delegate_to: localhost

About

An ansible module used to create / delete simplivity backups, using the HPE OmniStack REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages