---
- name: Generate openshift etcd certs
  become: yes
  include_role:
    name: etcd
    tasks_from: client_certificates.yml
  vars:
    etcd_cert_prefix: nuageEtcd-
    etcd_cert_config_dir: "{{ cert_output_dir }}"
    etcd_cert_subdir: "openshift-nuage-{{ openshift.common.hostname }}"


- name: Error if etcd certs are not copied
  stat:
    path: "{{ item }}"
  with_items:
  - "{{ cert_output_dir }}/nuageEtcd-ca.crt"
  - "{{ cert_output_dir }}/nuageEtcd-client.crt"
  - "{{ cert_output_dir }}/nuageEtcd-client.key"
