community / community.general / 0.1.1 / module / clc_server_snapshot Create, Delete and Restore server snapshots in CenturyLink Cloud. Authors: CLC Runner (@clc-runner) preview | supported by communitycommunity.general.clc_server_snapshot (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
An Ansible module to Create, Delete and Restore server snapshots in CenturyLink Cloud.
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples - name: Create server snapshot clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 expiration_days: 10 wait: True state: present
- name: Restore server snapshot clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 wait: True state: restore
- name: Delete server snapshot clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 wait: True state: absent
wait: default: true description: - Whether to wait for the provisioning tasks to finish before returning. required: false type: bool state: choices: - present - absent - restore default: present description: - The state to insure that the provided resources are in. required: false server_ids: description: - The list of CLC server Ids. required: true expiration_days: default: 7 description: - The number of days to keep the server snapshot before it expires. required: false
server_ids: description: The list of server ids that are changed returned: success sample: - UC1TEST-SVR01 - UC1TEST-SVR02 type: list