1234567891011121314151617181920212223242526272829303132 |
- ---
- - name: Pre-pull master system container image
- command: >
- atomic pull --storage=ostree {{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osm_image }}:{{ openshift_image_tag }}
- register: l_pull_result
- changed_when: "'Pulling layer' in l_pull_result.stdout"
- - name: Check Master system container package
- command: >
- atomic containers list --no-trunc -a -f container={{ openshift_service_type }}-master
- # HA
- - name: Install or Update HA api master system container
- oc_atomic_container:
- name: "{{ openshift_service_type }}-master-api"
- image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osm_image }}:{{ openshift_image_tag }}"
- state: latest
- values:
- - COMMAND=api
- - "NODE_SERVICE={{ openshift_service_type }}-node.service"
- - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
- - name: Install or Update HA controller master system container
- oc_atomic_container:
- name: "{{ openshift_service_type }}-master-controllers"
- image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osm_image }}:{{ openshift_image_tag }}"
- state: latest
- values:
- - COMMAND=controllers
- - "NODE_SERVICE={{ openshift_service_type }}-node.service"
- - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
|