named_certificates.yml 847 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Clear named certificates
  3. file:
  4. path: "{{ named_certs_dir }}"
  5. state: absent
  6. when: overwrite_named_certs | bool
  7. - name: Ensure named certificate directory exists
  8. file:
  9. path: "{{ named_certs_dir }}"
  10. state: directory
  11. mode: 0700
  12. - name: Land named certificates
  13. copy:
  14. src: "{{ item.certfile }}"
  15. dest: "{{ named_certs_dir }}"
  16. with_items: "{{ openshift_master_named_certificates | default([]) }}"
  17. - name: Land named certificate keys
  18. copy:
  19. src: "{{ item.keyfile }}"
  20. dest: "{{ named_certs_dir }}"
  21. mode: 0600
  22. with_items: "{{ openshift_master_named_certificates | default([]) }}"
  23. - name: Land named CA certificates
  24. copy:
  25. src: "{{ item }}"
  26. dest: "{{ named_certs_dir }}"
  27. mode: 0600
  28. with_items: "{{ openshift_master_named_certificates | default([]) | oo_collect('cafile') }}"