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
32 changes: 32 additions & 0 deletions playbooks/regen-standalone-certs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# Regenerate only the simpleca CA + standalone server certificate on localhost.
# This mirrors the SSL generation block in install_stack.yaml without deploying
# TripleO or touching the remote host.
- name: Regenerate simpleca and standalone certs on localhost
hosts: localhost
connection: local
gather_facts: false
vars_files: vars/defaults.yaml
tasks:
- name: Create temporary directory for SSL files
ansible.builtin.tempfile:
state: directory
suffix: dev-install-ssl
register: ssl_dir

- name: Generate standalone SSL certificates
ansible.builtin.include_role:
name: simpleca
vars:
cert_user: standalone
cert_name: standalone
ca_dir: "{{ ssl_dir.path }}/ssl/ca"
cert_dir: "{{ ssl_dir.path }}/ssl"

- name: Show where certs were written
ansible.builtin.debug:
msg:
- "CA cert: {{ ssl_dir.path }}/ssl/ca/simpleca.crt"
- "CA key: {{ ssl_dir.path }}/ssl/ca/simpleca.key"
- "Server cert: {{ ssl_dir.path }}/ssl/standalone.crt"
- "Server key: {{ ssl_dir.path }}/ssl/standalone.key"
Loading