Authored by chunhua.zhang

add kill -9

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