Playbooks to a new Lilik
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.

43 lines
1007 B

  1. ---
  2. - name: 'CA_MANAGER | generating json signing request'
  3. cert_request:
  4. host: '{{ host }}'
  5. path: '{{ request_path }}'
  6. proto: 'ssl'
  7. client: '{{ client | default(false) }}'
  8. register: ca_request
  9. - name: 'CA_MANAGER | sending json signing request'
  10. include: 'ca-dialog.yaml'
  11. - set_fact:
  12. request_output: '{{ request_result.stdout | string | from_json }}'
  13. - debug:
  14. var: request_result
  15. - name: 'CA_MANAGER | generating json get request'
  16. set_fact:
  17. ca_request:
  18. type: 'get_certificate'
  19. requestID: '{{ request_output.requestID }}'
  20. - debug:
  21. msg: >
  22. Please manually confirm sign request with id
  23. {{ request_output.requestID }}
  24. - name: 'CA_MANAGER | waiting for certificate...'
  25. include: 'ca-dialog.yaml'
  26. - set_fact:
  27. cert_key: '{{ request_result.stdout | string | from_json }}'
  28. - debug:
  29. var: request_result
  30. verbosity: 2
  31. - name: 'CA_MANAGER | saving certificate'
  32. copy:
  33. content: '{{ cert_key.result }}'
  34. dest: '{{ output_path }}'