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.

19 line
611B

  1. ---
  2. - include: key.yml
  3. - include: csr.yml
  4. - name: self sign certificate
  5. command: openssl x509 -req
  6. -in "{{ certificate_signing_request_file }}"
  7. -signkey "{{ certificate_private_key_file }}"
  8. -extfile "{{ certificate_signing_request_config_file }}"
  9. -extensions certificate_extensions
  10. -out "{{ certificate_file }}"
  11. {{ certificate_private_key_password is defined | ternary('-passin env:PRIVATE_KEY_PASSWORD','') }}
  12. args:
  13. creates: "{{ certificate_file }}"
  14. environment:
  15. PRIVATE_KEY_PASSWORD: "{{ certificate_private_key_password | default('') }}"
  16. notify: certificate changed