From 95a0fa3b87509f0fb9e3cb349674d3e242768406 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 1 Nov 2025 12:31:07 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Simplified=20and=20stan?= =?UTF-8?q?dardized=20system=20CA=20store=20detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the setupacdc.yml to use a more consistent and efficient approach for detecting the system's CA store path, reducing redundancy and improving maintainability. --- tasks/setupacdc.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 0f81f65..89ef473 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -8,29 +8,29 @@ tasks: - - name: Detect the system's CA store path for Debian/Ubuntu - ansible.builtin.set_fact: - ca_store_path: "/etc/ssl/certs/" - when: ansible_facts.os_family == "Debian" + # - name: Detect the system's CA store path for Debian/Ubuntu + # ansible.builtin.set_fact: + # ca_store_path: "/etc/ssl/certs/" + # when: ansible_facts.os_family == "Debian" - - name: Detect the system's CA store path for RedHat/CentOS/Fedora - ansible.builtin.set_fact: - ca_store_path: "/etc/pki/tls/certs/" - when: ansible_facts.os_family == "RedHat" + # - name: Detect the system's CA store path for RedHat/CentOS/Fedora + # ansible.builtin.set_fact: + # ca_store_path: "/etc/pki/tls/certs/" + # when: ansible_facts.os_family == "RedHat" - - name: Detect the system's CA store path for macOS - ansible.builtin.set_fact: - ca_store_path: "/System/Library/Keychains/SystemRootCertificates.keychain" - when: ansible_facts.system == "Darwin" + # - name: Detect the system's CA store path for macOS + # ansible.builtin.set_fact: + # ca_store_path: "/System/Library/Keychains/SystemRootCertificates.keychain" + # when: ansible_facts.system == "Darwin" - - name: Detect the system's CA store path for Windows - ansible.builtin.set_fact: - ca_store_path: "Windows Certificate Store (use certmgr.msc)" - when: ansible_facts.system == "Windows" + # - name: Detect the system's CA store path for Windows + # ansible.builtin.set_fact: + # ca_store_path: "Windows Certificate Store (use certmgr.msc)" + # when: ansible_facts.system == "Windows" - - name: Show the detected CA store path - ansible.builtin.debug: - msg: "The trusted CA store path is: {{ ca_store_path }}" + # - name: Show the detected CA store path + # ansible.builtin.debug: + # msg: "The trusted CA store path is: {{ ca_store_path }}"