Fixed undefined variables when upgrading to Ansible 2.2.0. and the elasticsearch role is skipped using a when condition at the playbook level.

This commit is contained in:
Mickael Ange 2016-11-15 16:03:05 +08:00
parent a4a0329df7
commit 9f3d6da436

View file

@ -29,3 +29,11 @@ es_xpack_features: []
#They do not effect the current configuration #They do not effect the current configuration
es_api_host: "localhost" es_api_host: "localhost"
es_api_port: 9200 es_api_port: 9200
# Since ansible 2.2 the following variables need to be defined
# to allow the role to be conditionally played with a when condition.
pid_dir: ''
log_dir: ''
work_dir: ''
conf_dir: ''
data_dirs: ''