From 5b1e6dd0bbc0aec4887f449fa6a970ac5b91a344 Mon Sep 17 00:00:00 2001 From: Ilya Ivanov Date: Wed, 10 Feb 2021 19:05:07 +0700 Subject: [PATCH] add support for centos 8, ref https://github.com/weareinteractive/ansible-openssl/issues/17 --- tasks/vars.yml | 1 + vars/redhat/8.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 vars/redhat/8.yml diff --git a/tasks/vars.yml b/tasks/vars.yml index 2dbbc9d..c6cf137 100644 --- a/tasks/vars.yml +++ b/tasks/vars.yml @@ -4,6 +4,7 @@ include_vars: "{{ item }}" with_first_found: - "{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}.yml" + - "{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}.yml" - "{{ ansible_distribution | lower }}.yml" - "{{ ansible_os_family | lower }}.yml" - "default.yml" diff --git a/vars/redhat/8.yml b/vars/redhat/8.yml new file mode 100644 index 0000000..0b8f547 --- /dev/null +++ b/vars/redhat/8.yml @@ -0,0 +1,14 @@ +--- +# packages (versions) +openssl_packages: + - openssl + - python3-pyOpenSSL + - ca-certificates +# pip executable +openssl_pip_executable: /usr/bin/pip +# Path to install certificate +openssl_cacert_certificates_path: '/etc/pki/ca-trust/source/anchors/' +# Command used to update certificates +openssl_cacert_update_certs_command: 'update-ca-trust' +# Certificate pem path +openssl_cacert_created_cert_path: '/etc/pki/ca-trust/extracted/'