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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6c4294a0-dbb0-474d-887d-353dbcbce2ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.