node_system_container.yml 946 B

123456789101112131415161718192021
  1. ---
  2. - name: Ensure proxies are in the atomic.conf
  3. include_role:
  4. name: openshift_atomic
  5. tasks_from: proxy
  6. - name: Pre-pull node system container image
  7. command: >
  8. atomic pull --storage=ostree {{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.node.node_system_image }}:{{ openshift_image_tag }}
  9. register: pull_result
  10. changed_when: "'Pulling layer' in pull_result.stdout"
  11. - name: Install or Update node system container
  12. oc_atomic_container:
  13. name: "{{ openshift.common.service_type }}-node"
  14. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ openshift.node.node_system_image }}:{{ openshift_image_tag }}"
  15. values:
  16. - "DNS_DOMAIN={{ openshift.common.dns_domain }}"
  17. - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
  18. - "MASTER_SERVICE={{ openshift.common.service_type }}.service"
  19. state: latest