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.

27 lines
795 B

  1. ---
  2. - name: Calculate etcd cert serial
  3. command: "openssl x509 -in {{ kube_cert_dir }}/apiserver-etcd-client.crt -noout -serial"
  4. register: "etcd_client_cert_serial_result"
  5. changed_when: false
  6. tags:
  7. - network
  8. - name: Set etcd_client_cert_serial
  9. set_fact:
  10. etcd_client_cert_serial: "{{ etcd_client_cert_serial_result.stdout.split('=')[1] }}"
  11. tags:
  12. - network
  13. - name: Ensure etcdctl binary is installed
  14. include_tasks: "{{ role_path }}/../../etcd/tasks/install_host.yml"
  15. vars:
  16. etcd_cluster_setup: true
  17. when: etcd_deployment_type == "host"
  18. - name: Ensure etcdctl binary is installed
  19. include_tasks: "{{ role_path }}/../../etcd/tasks/install_etcdctl_docker.yml"
  20. vars:
  21. etcd_cluster_setup: true
  22. etcd_retries: 4
  23. when:
  24. - etcd_deployment_type == "docker"