Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET-742 Zeus: don't import specific service certificates into truststore #245

Merged
merged 1 commit into from
Apr 10, 2024
Merged
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
10 changes: 7 additions & 3 deletions roles/java_certs/tasks/java_certs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- ansible.builtin.assert:
that:
- certificate_list is defined
- certificate_list is iterable
- root_ca_certs is defined
- root_ca_certs is iterable

# reset cacerts_file fact between iterations
- ansible.builtin.set_fact:
Expand Down Expand Up @@ -47,7 +47,9 @@
loop_var: cert

- name: Remove SSL certificates in {{ jdk.name }}
when: rebuild_keystore|default(false)
when:
- rebuild_keystore|default(false)
- certificate_list is defined
community.general.java_cert:
cert_url: "{{ removessl.cert_url }}"
keystore_path: "{{ cacerts_file }}"
Expand Down Expand Up @@ -85,3 +87,5 @@
with_items: "{{ certificate_list }}"
loop_control:
loop_var: importssl
when:
- certificate_list is defined
Loading