My Ansible Playbook to install an OpenShift Lab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
484 B

---
- 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