Showing
1 changed file
with
0 additions
and
8 deletions
@@ -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 |
-
Please register or login to post a comment