Fix Filebeat role for --check mode.
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
7bb7b22d1f
commit
1c754f7eb0
|
@ -4,3 +4,4 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: filebeat
|
name: filebeat
|
||||||
state: restarted
|
state: restarted
|
||||||
|
when: not ansible_check_mode
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
name: filebeat
|
name: filebeat
|
||||||
enabled: yes
|
enabled: yes
|
||||||
notify: restart filebeat
|
notify: restart filebeat
|
||||||
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: is logstash-plugin available?
|
- name: is logstash-plugin available?
|
||||||
stat:
|
stat:
|
||||||
|
@ -140,7 +141,9 @@
|
||||||
when:
|
when:
|
||||||
- filebeat_elasticsearch_auth_username | length > 0
|
- filebeat_elasticsearch_auth_username | length > 0
|
||||||
- filebeat_elasticsearch_auth_password | length > 0
|
- filebeat_elasticsearch_auth_password | length > 0
|
||||||
when: not (filebeat_use_config_template | bool)
|
when:
|
||||||
|
- not (filebeat_use_config_template | bool)
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: Filebeat api_key for Elasticsearch are configured
|
- name: Filebeat api_key for Elasticsearch are configured
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in New Issue