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