Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions playbooks/roles/simpleca/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Run the tasks to create CA cert and key when not provided
when: ssl_ca_cert is not defined or ssl_ca_key is not defined
block:
- name: Create CA key

Check warning on line 22 in playbooks/roles/simpleca/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / build

args[module]

Unsupported parameters for (basic.py) module: path. Supported parameters include: .
community.crypto.openssl_privatekey:
path: "{{ ca_dir }}/simpleca.key"
register: ca_key
Expand All @@ -31,6 +31,11 @@
common_name: "simpleca"
basic_constraints:
- "CA:TRUE"
basic_constraints_critical: true
key_usage:
- keyCertSign
- cRLSign
key_usage_critical: true
register: ca_csr

- name: Sign the CA CSR
Expand Down Expand Up @@ -83,6 +88,12 @@
- "IP:{{ control_plane_ip }}"
- "IP:{{ hostonly_gateway }}"
- "IP:{{ hostonly_v6_gateway }}"
key_usage:
- digitalSignature
- keyEncipherment
key_usage_critical: true
extended_key_usage:
- serverAuth
register: user_csr

- name: Sign the CSR for {{ cert_user }}
Expand Down
Loading