您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
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