Add always tags to set_fact tasks

Small correction to `when` clause in `tasks/elasticsearch-plugins.yml`.
This commit is contained in:
Jonathan Strootman 2016-04-26 12:11:13 -07:00
parent aa129e4eb4
commit 87bbff5279
6 changed files with 41 additions and 1 deletions

View file

@ -1,9 +1,13 @@
---
- set_fact: es_script_dir={{ es_conf_dir }}/{{es_instance_name}}
tags:
- always
- set_fact: es_script_dir={{es_config['path.scripts']}}
when: es_config['path.scripts'] is defined
tags:
- always
- name: Create script dir
file: state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}