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.

13 lines
430B

  1. ---
  2. - name: private key
  3. command: openssl genrsa
  4. -out "{{certificate_private_key_file}}"
  5. {{ certificate_private_key_password is defined | ternary('-aes256 -passout env:PRIVATE_KEY_PASSWORD','') }}
  6. {{ certificate_private_key_size }}
  7. args:
  8. creates: "{{ certificate_private_key_file }}"
  9. environment:
  10. PRIVATE_KEY_PASSWORD: "{{ certificate_private_key_password | default('') }}"
  11. notify: certificate changed