Skip to content
Snippets Groups Projects
Commit 628aae9e authored by jurgenhaas's avatar jurgenhaas
Browse files

Only execute this role, if required variables are defined

parent f6ea18bb
No related branches found
No related tags found
No related merge requests found
--- ---
elasticsearch_install: yes
elasticsearch: elasticsearch:
purge: purge:
- index: logstash - index: logstash
......
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
- Config - Config
when: elasticsearch.snapshot is defined and elasticsearch.snapshot.indices is defined when: elasticsearch.snapshot is defined and elasticsearch.snapshot.indices is defined
when: (not excluded_roles or "elasticsearch" not in excluded_roles) and 'logserver' in groups and inventory_hostname in groups.logserver when: elasticsearch_install and (not excluded_roles or "elasticsearch" not in excluded_roles) and 'logserver' in groups and inventory_hostname in groups.logserver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment