generate a private key (for now, on remote host)
This commit is contained in:
parent
eaacbca6dc
commit
957f3e29ff
3 changed files with 11 additions and 0 deletions
|
@ -3,3 +3,5 @@
|
|||
- hosts: all
|
||||
roles:
|
||||
- generate-cert
|
||||
vars:
|
||||
path: /tmp/test-client
|
||||
|
|
1
roles/generate-cert/defaults/main.yml
Normal file
1
roles/generate-cert/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
---
|
|
@ -2,3 +2,11 @@
|
|||
- name: Test
|
||||
ansible.builtin.debug:
|
||||
msg: "Test"
|
||||
|
||||
- name: Generate private key
|
||||
openssl_privatekey:
|
||||
path: "{{ path }}.key"
|
||||
owner: "{{ owner | default(omit) }}"
|
||||
group: "{{ group | default(omit) }}"
|
||||
mode: "{{ key_mode | default(omit) }}"
|
||||
size: "{{ key_size | default(omit) }}"
|
||||
|
|
Loading…
Reference in a new issue