Fix Filebeat role for --check mode.
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
William Hirigoyen (Evolix) 2021-12-21 15:27:27 +01:00
parent 7bb7b22d1f
commit 1c754f7eb0
2 changed files with 5 additions and 1 deletions

View File

@ -4,3 +4,4 @@
systemd:
name: filebeat
state: restarted
when: not ansible_check_mode

View File

@ -62,6 +62,7 @@
name: filebeat
enabled: yes
notify: restart filebeat
when: not ansible_check_mode
- name: is logstash-plugin available?
stat:
@ -140,7 +141,9 @@
when:
- filebeat_elasticsearch_auth_username | 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
lineinfile: