diff --git a/playbooks/roles/filebeat/tasks/main.yml b/playbooks/roles/filebeat/tasks/main.yml index d5fc76e..a766b51 100644 --- a/playbooks/roles/filebeat/tasks/main.yml +++ b/playbooks/roles/filebeat/tasks/main.yml @@ -126,7 +126,7 @@ when: filebeat_data_migration | default(false) and check_old_filebeat_data.stdout != '' - name: Check Filebeat Service Running Status - ansible.builtin.shell: "supervisorctl -c {{ filebeat_work_path }}/supervisor.yml status" + ansible.builtin.shell: "{{ python_bin_dir }}/supervisorctl -c {{ filebeat_work_path }}/supervisor.yml status filebeat_{{ instance_name }}_{{ log_type }}" register: filebeat_status changed_when: filebeat_status.rc != 0 failed_when: false