@ -8,21 +8,21 @@
fail:
fail:
msg : "registry_service_cluster_ip support only compatible with ClusterIP."
msg : "registry_service_cluster_ip support only compatible with ClusterIP."
when:
when:
- registry_service_cluster_ip is defined and registry_service_cluster_ip != ""
- registry_service_cluster_ip is defined and registry_service_cluster_ip|length > 0
- registry_service_type != "ClusterIP"
- registry_service_type != "ClusterIP"
- name : Registry | Stop if registry_service_loadbalancer_ip is defined when registry_service_type is not 'LoadBalancer'
- name : Registry | Stop if registry_service_loadbalancer_ip is defined when registry_service_type is not 'LoadBalancer'
fail:
fail:
msg : "registry_service_loadbalancer_ip support only compatible with LoadBalancer."
msg : "registry_service_loadbalancer_ip support only compatible with LoadBalancer."
when:
when:
- registry_service_loadbalancer_ip is defined and registry_service_loadbalancer_ip != ""
- registry_service_loadbalancer_ip is defined and registry_service_loadbalancer_ip|length > 0
- registry_service_type != "LoadBalancer"
- registry_service_type != "LoadBalancer"
- name : Registry | Stop if registry_service_nodeport is defined when registry_service_type is not 'NodePort'
- name : Registry | Stop if registry_service_nodeport is defined when registry_service_type is not 'NodePort'
fail:
fail:
msg : "registry_service_nodeport support only compatible with NodePort."
msg : "registry_service_nodeport support only compatible with NodePort."
when:
when:
- registry_service_nodeport is defined and registry_service_nodeport != ""
- registry_service_nodeport is defined and registry_service_nodeport|length > 0
- registry_service_type != "NodePort"
- registry_service_type != "NodePort"
- name : Registry | Create addon dir
- name : Registry | Create addon dir
@ -59,7 +59,7 @@
registry_templates : "{{ registry_templates + [item] }}"
registry_templates : "{{ registry_templates + [item] }}"
with_items:
with_items:
- [ { name: registry-ing, file: registry-ing.yml, type : ing }]
- [ { name: registry-ing, file: registry-ing.yml, type : ing }]
when : ingress_nginx_enabled == true or ingress_alb_enabled == true
when : ingress_nginx_enabled or ingress_alb_enabled
- name : Registry | Create manifests
- name : Registry | Create manifests
template:
template: