Authored by chunhua.zhang

add

@@ -9,14 +9,6 @@ @@ -9,14 +9,6 @@
9 when: confirmation != 'YES' 9 when: confirmation != 'YES'
10 10
11 11
12 -- name: Get running processes  
13 - shell: "ps -ef | grep -v grep | grep -w filebeat | awk '{print $2}'"  
14 - register: running_processes  
15 -  
16 -- name: Kill running processes  
17 - shell: "kill -9 {{ item }}"  
18 - with_items: "{{ running_processes.stdout_lines }}"  
19 -  
20 - name: Init filebeat folders 12 - name: Init filebeat folders
21 shell: mkdir -p /etc/filebeat /Data/logs/filebeat 13 shell: mkdir -p /etc/filebeat /Data/logs/filebeat
22 14