Difference between revisions of "Update deprecated openssl library from source code"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
   
 
   
 
       - ansible.builtin.[[unarchive]]:
 
       - ansible.builtin.[[unarchive]]:
           src: https://www.openssl.org/source/openssl-3.0.7.tar.gz
+
           src: https://www.openssl.org/source/openssl-1.1.1v.tar.gz
 
           dest: /tmp/
 
           dest: /tmp/
 
           remote_src: yes
 
           remote_src: yes
 
   
 
   
       - [[shell:]] cd /tmp/openssl-3.0.7/ && ./config && make && make test && make install
+
       - [[shell:]] cd /tmp/openssl-*/ && ./config && make && make test && make install
 
   
 
   
 
       - [[shell:]] echo "/usr/local/lib64" > [[/etc/ld.so.conf.d/openssl.conf]]  
 
       - [[shell:]] echo "/usr/local/lib64" > [[/etc/ld.so.conf.d/openssl.conf]]  
Line 29: Line 29:
  
  
 
+
          src: https://www.openssl.org/source/openssl-3.0.7.tar.gz
  
 
========================
 
========================

Revision as of 13:34, 5 February 2024

#!/usr/bin/env ansible-playbook 

- hosts: localhost
  #remote_user: YOUR_REMOTEUSER 
  #become: yes
  #connection: ssh

  tasks:
    - name: Install and start as service sysstat for Ubuntu 
      block:
      - package:
          name: 
            - perl-IPC-Cmd
            - make
          state: present	

      - ansible.builtin.unarchive:
          src: https://www.openssl.org/source/openssl-1.1.1v.tar.gz
          dest: /tmp/
          remote_src: yes

      - shell: cd /tmp/openssl-*/ && ./config && make && make test && make install

      - shell: echo "/usr/local/lib64" > /etc/ld.so.conf.d/openssl.conf 

       - shell: ldconfig



          src: https://www.openssl.org/source/openssl-3.0.7.tar.gz
============
      - lineinfile:
          path: /etc/default/sysstat
          state: present
          backrefs: yes
          regexp: '^ENABLED="false"'
          line: 'ENABLED="true"'

      - service:
          name: sysstat
           state: started
          enabled: yes
      when: ansible_distribution == 'Ubuntu'


[[./config]]
make
make test
make install

Related

See also

Advertising: