Skip to content

Commit

Permalink
SET-742 Zeus: don't import specific service certificates into truststore
Browse files Browse the repository at this point in the history
  • Loading branch information
RanabirChakraborty authored and rpelisse committed Apr 10, 2024
1 parent 85784bb commit cb42b75
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit cb42b75

Please sign in to comment.