Skip to content

Commit

Permalink
feat: playbook to delete instance
Browse files Browse the repository at this point in the history
Added ansible playbook to delete linode instance by "instance_label"

Signed-off-by: Pratik raj <[email protected]>
  • Loading branch information
Rajpratik71 committed Dec 6, 2020
1 parent 966f4bf commit 3d067bf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# 2020/12/05 by Pratik Raj
#
# An ansible playbook to Delete linode server by Instance Label
#
# Usage:
#
# export LINODE_API_KEY=4kfjh59shlhdkjhksdj00sdsTTsskklkjoiRPrbDtgHY
# ansible-playbook delete.yml
#
- name: Delete linode server
hosts: localhost
connection: local
gather_facts: false

vars_files:
- vars/config.yml

tasks:
- name: Delete your Linode Instance.
linode_v4:
access_token: "{{ token }}"
label: "{{ label }}"
state: absent

0 comments on commit 3d067bf

Please sign in to comment.