upgrade.yml 677 B

123456789101112131415161718192021222324252627
  1. ---
  2. # input variables:
  3. # - openshift_service_type
  4. # - openshift.common.is_containerized
  5. # - docker_version
  6. # - skip_docker_restart
  7. - name: Check Docker image count
  8. shell: "docker images -aq | wc -l"
  9. register: docker_image_count
  10. - debug: var=docker_image_count.stdout
  11. - service:
  12. name: docker
  13. state: stopped
  14. register: l_openshift_node_upgrade_docker_stop_result
  15. until: not l_openshift_node_upgrade_docker_stop_result | failed
  16. retries: 3
  17. delay: 30
  18. - name: Upgrade Docker
  19. package: name=docker{{ '-' + docker_version }} state=present
  20. register: result
  21. until: result | success
  22. # starting docker happens back in ../main.yml where it calls ../restart.yml