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.

23 lines
1.1 KiB

  1. ---
  2. - name: Helm | Compare host helm with hyperkube container
  3. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/systembindir --entrypoint /usr/bin/cmp {{ helm_image_repo }}:{{ helm_image_tag }} /usr/local/bin/helm /systembindir/helm"
  4. register: helm_task_compare_result
  5. until: helm_task_compare_result.rc in [0,1,2]
  6. retries: 4
  7. delay: "{{ retry_stagger | random + 3 }}"
  8. changed_when: false
  9. failed_when: "helm_task_compare_result.rc not in [0,1,2]"
  10. - name: Helm | Copy helm from helm container
  11. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/systembindir --entrypoint /bin/cp {{ helm_image_repo }}:{{ helm_image_tag }} -f /usr/local/bin/helm /systembindir/helm"
  12. when: helm_task_compare_result.rc != 0
  13. register: helm_task_result
  14. until: helm_task_result.rc == 0
  15. retries: 4
  16. delay: "{{ retry_stagger | random + 3 }}"
  17. - name: Helm | Copy socat wrapper for Container Linux
  18. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
  19. args:
  20. creates: "{{ bin_dir }}/socat"
  21. when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']