node_system_container.yml 821 B

1234567891011121314151617
  1. ---
  2. - name: Pre-pull node system container image
  3. command: >
  4. atomic pull --storage=ostree {{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.node.node_system_image }}:{{ openshift_image_tag }}
  5. register: pull_result
  6. changed_when: "'Pulling layer' in pull_result.stdout"
  7. - name: Install or Update node system container
  8. oc_atomic_container:
  9. name: "{{ openshift_service_type }}-node"
  10. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.node.node_system_image }}:{{ openshift_image_tag }}"
  11. values:
  12. - "DNS_DOMAIN={{ openshift.common.dns_domain }}"
  13. - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
  14. - "MASTER_SERVICE={{ openshift_service_type }}.service"
  15. state: latest