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.
 
 
 
 

42 lines
1.1 KiB

---
- name: 'CA_MANAGER | generating json signing request'
cert_request:
host: '{{ host }}'
path: '{{ request_path }}'
proto: 'ssl'
client: '{{ client | default(false) }}'
register: ca_request
- name: 'CA_MANAGER | sending json signing request'
import_tasks: 'ca-dialog.yaml'
- name: 'CA_MANAGER | read ca answer'
set_fact:
request_output: '{{ request_result.stdout | string | from_json }}'
- debug:
var: request_result
- name: 'CA_MANAGER | generating json get request'
set_fact:
ca_request:
type: 'get_certificate'
requestID: '{{ request_output.requestID }}'
- name: 'CA_MANAGER | print request id'
debug:
msg: >
Please manually confirm sign request with id
{{ request_output.requestID }}
- name: 'CA_MANAGER | waiting for certificate...'
include: 'ca-dialog.yaml'
- name: 'CA MANAGER | read certificate'
set_fact:
cert_key: '{{ request_result.stdout | string | from_json }}'
- name: 'CA_MANAGER | saving certificate'
copy:
content: '{{ cert_key.result }}'
dest: '{{ output_path }}'