generate a private key (for now, on remote host)

This commit is contained in:
histausse 2021-09-08 20:21:02 +02:00
parent eaacbca6dc
commit 957f3e29ff
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 11 additions and 0 deletions

View file

@ -3,3 +3,5 @@
- hosts: all - hosts: all
roles: roles:
- generate-cert - generate-cert
vars:
path: /tmp/test-client

View file

@ -0,0 +1 @@
---

View file

@ -2,3 +2,11 @@
- name: Test - name: Test
ansible.builtin.debug: ansible.builtin.debug:
msg: "Test" 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) }}"