[CORD-2950]v2, fix problem with M/E-CORD profiles not having dynamic
services

Change-Id: Idde728bfdac7b300904a942dd83051d4f3c47105
diff --git a/ansible/roles/genconfig/tasks/main.yml b/ansible/roles/genconfig/tasks/main.yml
index 2f837db..b5aa476 100644
--- a/ansible/roles/genconfig/tasks/main.yml
+++ b/ansible/roles/genconfig/tasks/main.yml
@@ -83,7 +83,7 @@
       {{ profile_container_list | union(profile_manifest.xos_services | map(attribute='name') | map('regex_replace', '(.*)','xosproject/\1-synchronizer') | list) }}
 
 - name: Add items to profile_container_list from profile_manifest.xos_dynamic_services
-  when: profile_manifest.xos_dynamic_services
+  when: profile_manifest.xos_dynamic_services is defined
   set_fact:
     profile_container_list: |
       {{ profile_container_list | union(profile_manifest.xos_dynamic_services | map(attribute='name') | map('regex_replace', '(.*)','xosproject/\1-synchronizer') | list) }}