summaryrefslogtreecommitdiffstats
path: root/edge/sample/roles/clusterTear_common/tasks
diff options
context:
space:
mode:
authoradarsh1001 <adarshpalsingh1996@gmail.com>2018-07-22 02:11:47 +0530
committeradarsh1001 <adarshpalsingh1996@gmail.com>2018-07-22 02:20:49 +0530
commit667fa134daca1c7264d0abfabfb1ce443a82ccc4 (patch)
treeb710f9228d3ec0f6965329d9f40689b1636413a6 /edge/sample/roles/clusterTear_common/tasks
parent0254cb223d2eace1eaf295eacf4cea4fc4fd9844 (diff)
Add ansible scripts for raspberry pi based kubernetes edge cluster
JIRA: CLOVER-71 This issue falls under the "Edge Cloud-Native Cluster" intern project and is a part of both Clover and Edge cloud projects. The detailed description of the project and the instructions for using the scripts are documented in the README. Change-Id: I4fdb98f17ae0c53f918376ad6fb90be8ff0b0a71 Signed-off-by: adarsh1001 <adarshpalsingh1996@gmail.com>
Diffstat (limited to 'edge/sample/roles/clusterTear_common/tasks')
-rw-r--r--edge/sample/roles/clusterTear_common/tasks/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/edge/sample/roles/clusterTear_common/tasks/main.yml b/edge/sample/roles/clusterTear_common/tasks/main.yml
new file mode 100644
index 0000000..64b1320
--- /dev/null
+++ b/edge/sample/roles/clusterTear_common/tasks/main.yml
@@ -0,0 +1,21 @@
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+- name: Resetting kubeadm
+ shell: kubeadm reset
+
+- name: Deleting the .kube config directory
+ file:
+ path: /home/pi/.kube
+ state: absent
+ when: "'master' in group_names"
+
+- name: Rebooting
+ shell: sleep 2 && reboot
+ async: 1
+ poll: 0
+ ignore_errors: true