I am trying to debug a problem with installing OpenEdX on Ubuntu 14.04. The same set of playbooks work find on Ubuntu 12.04 BTW. A task was failing apparently because the environment variables were not set. The task is using rbenv. The environment is set as follows:
edxapp_environment:
LANG: $EDXAPP_LANG
NO_PREREQ_INSTALL: $EDXAPP_NO_PREREQ_INSTALL
SKIP_WS_MIGRATIONS: 1
RBENV_ROOT: $edxapp_rbenv_root
GEM_HOME: $edxapp_gem_root
GEM_PATH: $edxapp_gem_root
PATH: $edxapp_deploy_path
I did a debug as the first step of the main.yml tasks file for the edxapp role. The output was:
First the debug:
- name: Display edxapp_env
debug: msg=“The EDXAPP Env is {{edxapp_environment}}!”
then the output…
TASK: [edxapp | Display edxapp_env] *******************************************
ok: [localhost] => {
“item”: “”,
“msg”: “The EDXAPP Env is {‘LANG’: ‘$EDXAPP_LANG’, ‘SKIP_WS_MIGRATIONS’: 1, ‘GEM_PATH’: ‘$edxapp_gem_root’, ‘NO_PREREQ_INSTALL’: ‘$EDXAPP_NO_PREREQ_INSTALL’, ‘PATH’: ‘$edxapp_deploy_path’, ‘GEM_HOME’: ‘$edxapp_gem_root’, ‘RBENV_ROOT’: ‘$edxapp_rbenv_root’}!”
}
What is funny is that debug statement for $edxapp_rbenv_root shows that it is properly set even though for some reason it does not create the edxapp_environment variable correctly. **** BTW I did a debug of complex variables before and after edxapp_environment and they are set correctly.
Any help or suggestions on how to debug this problem would be appreciated.
Ray