Merge "update name of deploy to deployPlatform and test for existance of variable before testing value"
diff --git a/roles/docker-compose/tasks/main.yml b/roles/docker-compose/tasks/main.yml
index 5f1da1d..84d0edd 100644
--- a/roles/docker-compose/tasks/main.yml
+++ b/roles/docker-compose/tasks/main.yml
@@ -32,7 +32,7 @@
     -a "src=~/admin-openrc.sh dest={{ service_profile_repo_dest }}/{{ xos_configuration }}"
 
 - name: Wait for test client to complete installation
-  when: test_client_install
+  when: test_client_install is defined and test_client_install
   async_status: jid={{ test_client_playbook.ansible_job_id }}
   register: test_client_playbook_result
   until: test_client_playbook_result.finished