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.

30 lines
900 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. environment: "{{proxy_env}}"
  14. when: etcd_cluster_setup
  15. - name: Install | Copy etcdctl binary from rkt container
  16. command: >-
  17. /usr/bin/rkt run
  18. --volume=bin-dir,kind=host,source={{ bin_dir}},readOnly=false
  19. --mount=volume=bin-dir,target=/host/bin
  20. {{ etcd_image_repo }}:{{ etcd_image_tag }}
  21. --name=etcdctl-binarycopy
  22. --exec=/bin/cp -- /usr/local/bin/etcdctl /host/bin/etcdctl
  23. register: etcd_task_result
  24. until: etcd_task_result.rc == 0
  25. retries: 4
  26. delay: "{{ retry_stagger | random + 3 }}"
  27. changed_when: false
  28. environment: "{{proxy_env}}"
  29. when: etcd_cluster_setup