-
Notifications
You must be signed in to change notification settings - Fork 1
/
CLC_Delete-Server-Snapshot-playbook.yml
62 lines (55 loc) · 1.87 KB
/
CLC_Delete-Server-Snapshot-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
################################################################################
# description: Delete VM server snapshots via Control at CenturyLink Cloud
# usage: ansible-playbook CLC_Delete-Server-Snapshot-playbook.yml
# Example ONLY! This playbook must manually be edited to suit currently sorry!
# author: Ernest G. Wilson II <[email protected]> (https://github.com/ernestgwilsonii)
# license: MIT
################################################################################
# Ansible Playbook options
# REF: http://docs.ansible.com/ansible/playbooks.html
#####################################################
- name: Delete server snapshot
hosts: localhost
gather_facts: False
connection: local
tasks:
# clc_server_snapshot - Create, Delete and Restore server snapshots in CenturyLink Cloud
# REF: http://docs.ansible.com/ansible/clc_server_snapshot_module.html
######################################################################
# Delete server snapshots
- name: Delete each server snapshot
clc_server_snapshot:
server_ids:
- VA1EWTOFRTC01
- VA1EWTOFRTC02
- VA1EWTOFRTC03
- VA1EWTOFRTC04
- VA1EWTOFRTC05
- VA1EWTOFRTC06
- VA1EWTOFRTC07
- VA1EWTOFRTC08
- VA1EWTOFRTC09
- VA1EWTOFRTC10
- VA1EWTOFRTC11
- VA1EWTOFRTC12
- VA1EWTOFRTC13
- VA1EWTOFRTC14
- VA1EWTOFRTC15
- VA1EWTOFRTC16
- VA1EWTOFRTC17
- VA1EWTOFRTC18
- VA1EWTOFRTC19
- VA1EWTOFRTC20
- VA1EWTOFRTC21
- VA1EWTOFRTC22
- VA1EWTOFRTC23
- VA1EWTOFRTC24
- VA1EWTOFRTC25
- VA1EWTOFRTC26
- VA1EWTOFRTC27
- VA1EWTOFRTC28
- VA1EWTOFRTC29
- VA1EWTOFRTC30
wait: True
state: absent