community_fabric.ansible.snapshot module – Create, Update, Load, Unload or Delete Snapshots within IP Fabric
Note
This module is part of the community_fabric.ansible collection (version 0.0.4).
To install it, use: ansible-galaxy collection install community_fabric.ansible
.
To use it in a playbook, specify: community_fabric.ansible.snapshot
.
Synopsis
Create, Update, Load, Unload or Delete Snapshots within IP Fabric
Parameters
Parameter |
Comments |
---|---|
List of device serial numbers to rediscover |
|
Information used to connect to IP Fabric via API |
|
The version of the IP Fabric REST API. |
|
Url of the IP Fabric API |
|
Set HTTP Timeout |
|
IP Fabric API token to be able to gather device information. |
|
Allows connection when SSL certificates are not valid. Set to Choices:
|
|
IP Fabric snapshot IF to use by default for database actions. Defaults to |
|
Set snapshot name |
|
Set snapshot description |
|
State of snapshot. Choices:
|
Examples
- name: Start Snapshot
community_fabric.ansible.snapshot:
provider:
base_url: "https://demo1.ipfabric.io/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
- name: Delete Snapshot
community_fabric.ansible.snapshot:
provider:
base_url: "https://10.194.50.6/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
snaphot_id: 12dd8c61-129c-431a-b98b-4c9211571f89
state: absent
- name: Unload Snapshot
community_fabric.ansible.snapshot:
provider:
base_url: "https://10.194.50.6/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
snaphot_id: 12dd8c61-129c-431a-b98b-4c9211571f89
state: unload
- name: Clone Snapshot
community_fabric.ansible.snapshot:
provider:
base_url: "https://10.194.50.6/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
snaphot_id: 12dd8c61-129c-431a-b98b-4c9211571f89
state: clone
- name: Clone Snapshot
community_fabric.ansible.snapshot:
provider:
base_url: "https://10.194.50.6/"
token: "{{ lookup('ansible.builtin.env', 'IPF_TOKEN')}}"
snaphot_id: 12dd8c61-129c-431a-b98b-4c9211571f89
devices:
- 9AMSST2E75V
state: rediscover