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.

26 lines
798 B

  1. ---
  2. - name: Trust etcd container
  3. command: >-
  4. /usr/bin/rkt trust
  5. --skip-fingerprint-review
  6. --root
  7. https://quay.io/aci-signing-key
  8. register: etcd_rkt_trust_result
  9. until: etcd_rkt_trust_result.rc == 0
  10. retries: 4
  11. delay: "{{ retry_stagger | random + 3 }}"
  12. changed_when: false
  13. - name: Install | Copy etcdctl binary from rkt container
  14. command: >-
  15. /usr/bin/rkt run
  16. --volume=bin-dir,kind=host,source={{ bin_dir}},readOnly=false
  17. --mount=volume=bin-dir,target=/host/bin
  18. {{ etcd_image_repo }}:{{ etcd_image_tag }}
  19. --name=etcdctl-binarycopy
  20. --exec=/bin/cp -- {{ etcd_container_bin_dir }}/etcdctl /host/bin/etcdctl
  21. register: etcd_task_result
  22. until: etcd_task_result.rc == 0
  23. retries: 4
  24. delay: "{{ retry_stagger | random + 3 }}"
  25. changed_when: false