Merge pull request '修复Check Filebeat Service Running Status命令找不到的问题' (#27) from pengln/filebeat:master into master

Reviewed-on: https://app.huanyuantech.com:10301/gitea/ansible-collection/filebeat/pulls/27
This commit is contained in:
pengln 2021-12-06 17:46:35 +08:00
commit f776ffc3a2
1 changed files with 1 additions and 1 deletions

View File

@ -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