Skip to content

Commit

Permalink
build and use openssl 1.1.1w
Browse files Browse the repository at this point in the history
  • Loading branch information
xpillons committed Oct 16, 2023
1 parent 9990d0c commit c3f3d79
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions playbooks/roles/cyclecloud/tasks/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,30 @@

- name: Install pre-reqs packages
yum:
name: azure-cli, dnsmasq, unzip, gcc, openssl-devel, bzip2-devel, libffi-devel, zlib-devel, openssl11, openssl11-libs, openssl11-devel
name: azure-cli, dnsmasq, unzip, gcc, bzip2-devel, libffi-devel, zlib-devel
state: present
lock_timeout : 180

- name: Install OpenSSL
unarchive:
src: "https://github.com/openssl/openssl/releases/download/openssl-1.1.1w/openssl-1.1.1w.tar.gz"
dest: /tmp/
remote_src: yes
args:
creates: /usr/local/openssl

- name: Build OpenSSL
shell: |
set -e
cd /tmp/openssl-1.1.1w
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
make
make install
echo "/usr/local/openssl/lib" > /etc/ld.so.conf.d/openssl.conf
ldconfig
args:
creates: /usr/local/openssl

- name: download Python 3.9
unarchive:
src: "https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tgz"
Expand All @@ -59,7 +79,7 @@
shell: |
set -e
cd /tmp/Python-3.9.18
./configure --enable-optimizations
./configure --enable-optimizations --with-openssl=/usr/local/openssl
make altinstall
args:
creates: /usr/local/bin/python3.9
Expand Down

0 comments on commit c3f3d79

Please sign in to comment.