|
@ -10,7 +10,8 @@ |
|
|
- name: 'CA_MANAGER | sending json signing request' |
|
|
- name: 'CA_MANAGER | sending json signing request' |
|
|
include: 'ca-dialog.yaml' |
|
|
include: 'ca-dialog.yaml' |
|
|
|
|
|
|
|
|
- set_fact: |
|
|
|
|
|
|
|
|
- name: 'CA_MANAGER | read ca answer' |
|
|
|
|
|
set_fact: |
|
|
request_output: '{{ request_result.stdout | string | from_json }}' |
|
|
request_output: '{{ request_result.stdout | string | from_json }}' |
|
|
|
|
|
|
|
|
- debug: |
|
|
- debug: |
|
@ -22,7 +23,8 @@ |
|
|
type: 'get_certificate' |
|
|
type: 'get_certificate' |
|
|
requestID: '{{ request_output.requestID }}' |
|
|
requestID: '{{ request_output.requestID }}' |
|
|
|
|
|
|
|
|
- debug: |
|
|
|
|
|
|
|
|
- name: 'CA_MANAGER | print request id' |
|
|
|
|
|
debug: |
|
|
msg: > |
|
|
msg: > |
|
|
Please manually confirm sign request with id |
|
|
Please manually confirm sign request with id |
|
|
{{ request_output.requestID }} |
|
|
{{ request_output.requestID }} |
|
@ -30,13 +32,10 @@ |
|
|
- name: 'CA_MANAGER | waiting for certificate...' |
|
|
- name: 'CA_MANAGER | waiting for certificate...' |
|
|
include: 'ca-dialog.yaml' |
|
|
include: 'ca-dialog.yaml' |
|
|
|
|
|
|
|
|
- set_fact: |
|
|
|
|
|
|
|
|
- name: 'CA MANAGER | read certificate' |
|
|
|
|
|
set_fact: |
|
|
cert_key: '{{ request_result.stdout | string | from_json }}' |
|
|
cert_key: '{{ request_result.stdout | string | from_json }}' |
|
|
|
|
|
|
|
|
- debug: |
|
|
|
|
|
var: request_result |
|
|
|
|
|
verbosity: 2 |
|
|
|
|
|
|
|
|
|
|
|
- name: 'CA_MANAGER | saving certificate' |
|
|
- name: 'CA_MANAGER | saving certificate' |
|
|
copy: |
|
|
copy: |
|
|
content: '{{ cert_key.result }}' |
|
|
content: '{{ cert_key.result }}' |
|
|