Commit 1428f8ff by John Jarvis

Merge pull request #1745 from edx/jarv/xserver-null-values

changing null defaults to empty strings to deal with ansible bug
parents 766fdd20 75ba5144
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
- elasticsearch - elasticsearch
- forum - forum
- { role: "xqueue", update_users: True } - { role: "xqueue", update_users: True }
- xserver - role: xserver
when: XSERVER_GIT_IDENTITY|length > 0
- certs - certs
- edx_ansible - edx_ansible
- analytics-api - analytics-api
......
...@@ -9,11 +9,11 @@ XSERVER_RUN_URL: '' ...@@ -9,11 +9,11 @@ XSERVER_RUN_URL: ''
XSERVER_LOGGING_ENV: 'sandbox' XSERVER_LOGGING_ENV: 'sandbox'
XSERVER_SYSLOG_SERVER: '' XSERVER_SYSLOG_SERVER: ''
# For 6.00x use "{{ xserver_data_dir }}/data/content-mit-600x~2012_Fall" # For 6.00x use "{{ xserver_data_dir }}/data/content-mit-600x~2012_Fall"
XSERVER_GRADER_DIR: !!null XSERVER_GRADER_DIR: ""
# For 6.00x use "git@github.com:/MITx/6.00x.git" # For 6.00x use "git@github.com:/MITx/6.00x.git"
XSERVER_GRADER_SOURCE: !!null XSERVER_GRADER_SOURCE: ""
# This must be set to run this role # This must be set to run this role
XSERVER_GIT_IDENTITY: !!null XSERVER_GIT_IDENTITY: ""
XSERVER_LANG: "en_US.UTF-8" XSERVER_LANG: "en_US.UTF-8"
......
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
--- ---
- name: checking for grader info - name: checking for grader info
fail: msg="You must define XSERVER_GRADER_DIR and XSERVER_GRADER_SOURCE to use this role!" fail: msg="You must define XSERVER_GRADER_DIR"
when: not XSERVER_GRADER_DIR or not XSERVER_GRADER_SOURCE when: XSERVER_GRADER_DIR|length == 0
- fail: msg="You must define XSERVER_GRADER_SOURCE"
when: XSERVER_GRADER_SOURCE|length == 0
- name: checking for git identity - name: checking for git identity
fail: msg="You must define XSERVER_GIT_IDENTITY to use this role" fail: msg="You must define XSERVER_GIT_IDENTITY to use this role"
when: not XSERVER_GIT_IDENTITY when: XSERVER_GIT_IDENTITY|length == 0
- name: create application user - name: create application user
user: > user: >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment