Add csi plugin ansible and tutorial document
[stor4nfv.git] / ci / ansible / roles / cleaner / tasks / main.yml
index 93aeb59..334d5bb 100644 (file)
@@ -1,4 +1,11 @@
 ---\r
+- name: remove golang tarball\r
+  file:\r
+    path: "/opt/{{ golang_tarball }}"\r
+    state: absent\r
+    force: yes\r
+  ignore_errors: yes\r
+\r
 - name: kill etcd daemon service\r
   shell: killall etcd\r
   ignore_errors: yes\r
@@ -14,7 +21,7 @@
 \r
 - name: remove etcd tarball\r
   file:\r
-    path: "/tmp/{{ etcd_tarball }}"\r
+    path: "/opt/{{ etcd_tarball }}"\r
     state: absent\r
     force: yes\r
   ignore_errors: yes\r
   ignore_errors: yes\r
 \r
 - name: clean all opensds build files\r
-  file:\r
-    path: "{{ opensds_build_dir }}"\r
-    state: absent\r
-    force: yes\r
-  ignore_errors: yes\r
+  shell: . /etc/profile; make clean\r
+  args:\r
+    chdir: "{{ opensds_root_dir }}"\r
 \r
 - name: clean all opensds configuration files\r
   file:\r