--- - name: Install new JBoss ImageStreams command: oc create -n openshift -f "{{ jboss_image_streams }}" register: oc failed_when: oc.rc > 0 and 'Error from server (AlreadyExists):' not in oc.stderr changed_when: oc.rc == 0 - name: Update existing JBoss ImageStreams command: oc replace -n openshift -f "{{ jboss_image_streams }}" register: oc failed_when: oc.rc > 0 and 'Error from server (NotFound):' not in oc.stderr changed_when: oc.rc == 0 - name: Update the router to allow Wildcards command: oc set env dc/router ROUTER_ALLOW_WILDCARD_ROUTES=true -n default - name: Update the dnsmasq configuration to reference the wildcard DNS entry template: src=wildcard.conf dest=/etc/dnsmasq.d/wildcard.conf - name: Restart the dnsmasq service service: name=dnsmasq enabled=yes state=restarted