Skip to content
Browse files

Set up env vars correctly for using the "Ara" plugin for Ansible.

Ara is optional -- it will only be used if installed.  If it is,
it will record a log file and a `.sqlite` DB in the directory where
the `elasticluster` command is invoked.  The contents of these files
can be used for debugging or profiling.

Fixes #618
  • Loading branch information...
riccardomurri committed Mar 11, 2019
1 parent d80ac75 commit 82919dc9f6ea45c1c1b963146b878bd57706d435
Showing with 7 additions and 4 deletions.
  1. +7 −4 elasticluster/providers/
@@ -274,11 +274,14 @@ def _run_playbook(self, cluster, playbook, extra_args):
ara_dir = os.getcwd()
ansible_env['ARA_DIR'] = ara_dir
ansible_env['ARA_DATABASE'] = (
.format(ara_dir=ara_dir, run_id=run_id))
ansible_env['ARA_LOG_CONFIG'] = (
.format(ara_dir=ara_dir, run_id=run_id))
ansible_env['ARA_LOG_FILE'] = (
.format(ara_dir=ara_dir, run_id=run_id))
ansible_env['ARA_LOG_LEVEL'] = 'DEBUG'
ansible_env['ARA_PLAYBOOK_PER_PAGE'] = '0'
ansible_env['ARA_RESULT_PER_PAGE'] = '0'

0 comments on commit 82919dc

Please sign in to comment.
You can’t perform that action at this time.