You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluo.apache.org by kn...@apache.org on 2021/04/07 18:14:43 UTC

[fluo-muchos] branch main updated: Fix wipe-systemd to clear Accumulo systemd units (#389)

This is an automated email from the ASF dual-hosted git repository.

knarendran pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-muchos.git


The following commit(s) were added to refs/heads/main by this push:
     new a942b82  Fix wipe-systemd to clear Accumulo systemd units (#389)
a942b82 is described below

commit a942b82cef1d46d504f62b3094bd0da537ae6f21
Author: Karthick Narendran <ka...@gmail.com>
AuthorDate: Wed Apr 7 19:14:37 2021 +0100

    Fix wipe-systemd to clear Accumulo systemd units (#389)
    
    Co-authored-by: Karthick Narendran <ka...@microsoft.com>
---
 ansible/wipe-systemd.yml | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/ansible/wipe-systemd.yml b/ansible/wipe-systemd.yml
index 0d8d9f9..8b0cc43 100644
--- a/ansible/wipe-systemd.yml
+++ b/ansible/wipe-systemd.yml
@@ -31,8 +31,16 @@
     register: stop_disable_service
     failed_when: "stop_disable_service is failed and 'Could not find the requested service' not in stop_disable_service.msg"
 
-  - name: "remove accumulo systemd units"
-    file: path="/etc/systemd/system/accumulo-*" state=absent
+  - name: "find accumulo systemd units to remove in masters"
+    find:
+      paths: /etc/systemd/system
+      patterns: 'accumulo-*.service'
+    register: find_accumulo_services
+
+  - name: "remove accumulo systemd units in masters"
+    file: path="{{ item.path }}" state=absent
+    with_items:
+      - "{{ find_accumulo_services.files }}"
     register: delete_task
     retries: 10
     delay: 3
@@ -51,8 +59,16 @@
     register: stop_disable_service
     failed_when: "stop_disable_service is failed and 'Could not find the requested service' not in stop_disable_service.msg"
 
-  - name: "remove accumulo tserver systemd units"
-    file: path="/etc/systemd/system/accumulo-tserver*" state=absent
+  - name: "find accumulo tserver systemd units to remove in workers"
+    find:
+      paths: /etc/systemd/system
+      patterns: 'accumulo-*.service'
+    register: find_accumulo_tserver
+
+  - name: "remove accumulo tserver systemd units in workers"
+    file: path="{{ item.path }}" state=absent
+    with_items:
+      - "{{ find_accumulo_tserver.files }}"
     register: delete_task
     retries: 10
     delay: 3