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.

16 lines
524 B

  1. ---
  2. - name: Cloud | Copy cni plugins from hyperkube
  3. command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -rf /opt/cni/bin/. /cnibindir/"
  4. register: cni_task_result
  5. until: cni_task_result.rc == 0
  6. retries: 4
  7. delay: "{{ retry_stagger | random + 3 }}"
  8. changed_when: false
  9. - name: Cloud | Set cni directory permissions
  10. file:
  11. path: /opt/cni/bin
  12. state: directory
  13. owner: kube
  14. recurse: true
  15. mode: "u=rwX,g-rwx,o-rwx"