25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
924B

  1. ---
  2. # setup ca directory
  3. - name: directory
  4. file:
  5. path: "{{ certificate_authority_directory }}"
  6. #mode: 0700
  7. state: directory
  8. - name: subdirectories
  9. file:
  10. path: "{{ certificate_authority_directory }}/{{ item }}"
  11. #mode: 0700
  12. state: directory
  13. with_items:
  14. - certs
  15. - crl
  16. - csr
  17. - newcerts
  18. - name: private directory
  19. file:
  20. path: "{{ certificate_authority_directory }}/private"
  21. mode: 0700
  22. state: directory
  23. - name: index
  24. copy:
  25. content: ""
  26. dest: "{{ certificate_authority_directory }}/index"
  27. force: no
  28. - name: index config
  29. template:
  30. src: index.attr.j2
  31. dest: "{{ certificate_authority_directory }}/index.attr"
  32. - name: serial
  33. copy:
  34. content: "00\n"
  35. dest: "{{ certificate_authority_directory }}/serial"
  36. force: no
  37. - name: openssl config
  38. template:
  39. src: openssl.cnf.j2
  40. dest: "{{ certificate_authority_directory }}/openssl.cnf"