parent
c70818804a
commit
92583e12d2
3 changed files with 25 additions and 11 deletions
@ -1,8 +1,10 @@ |
|||||||
--- |
--- |
||||||
- name: restart filebeat |
- name: restart filebeat |
||||||
service: name=filebeat state=restarted |
service: name=filebeat state=restarted |
||||||
|
when: filebeat_output_hosts | length > 0 |
||||||
|
|
||||||
- name: restart journalbeat |
- name: restart journalbeat |
||||||
service: |
service: name=journalbeat state=restarted |
||||||
name: journalbeat |
when: |
||||||
state: "{{ (ansible_service_mgr == 'systemd') | ternary('restarted','stopped') }}" |
- filebeat_output_hosts | length > 0 |
||||||
|
- ansible_service_mgr == 'systemd' |
||||||
|
Loading…
Reference in new issue