summaryrefslogtreecommitdiffstats
path: root/plugins/odl_cluster/roles
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/odl_cluster/roles')
-rw-r--r--plugins/odl_cluster/roles/odl_cluster/tasks/control-hosts-1.yml4
-rw-r--r--plugins/odl_cluster/roles/odl_cluster/tasks/odl-post.yml6
2 files changed, 7 insertions, 3 deletions
diff --git a/plugins/odl_cluster/roles/odl_cluster/tasks/control-hosts-1.yml b/plugins/odl_cluster/roles/odl_cluster/tasks/control-hosts-1.yml
index 133d98a7..6879340e 100644
--- a/plugins/odl_cluster/roles/odl_cluster/tasks/control-hosts-1.yml
+++ b/plugins/odl_cluster/roles/odl_cluster/tasks/control-hosts-1.yml
@@ -95,4 +95,6 @@
{{ odl_home }}configuration/tomcat-server.xml
- name: remove karaf data directory
- shell: rm -rf {{ odl_home }}/data/*;
+ file:
+ path: "{{ odl_home }}data"
+ state: absent
diff --git a/plugins/odl_cluster/roles/odl_cluster/tasks/odl-post.yml b/plugins/odl_cluster/roles/odl_cluster/tasks/odl-post.yml
index 8794ff0c..9f1cb79e 100644
--- a/plugins/odl_cluster/roles/odl_cluster/tasks/odl-post.yml
+++ b/plugins/odl_cluster/roles/odl_cluster/tasks/odl-post.yml
@@ -23,8 +23,10 @@
- inventory_hostname in groups['neutron_openvswitch_agent']
- inventory_hostname not in groups['nova_compute']
-- name: clear karaf data
- shell: rm -rf {{ odl_home }}/data/*;
+- name: remove karaf data directory
+ file:
+ path: "{{ odl_home }}data"
+ state: absent
when: inventory_hostname in groups['network_hosts']
- name: restart opendaylight