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

From wikieduonline
Jump to navigation Jump to search
 
(34 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
     - name: Install and start as service sysstat for Ubuntu  
 
     - name: Install and start as service sysstat for Ubuntu  
 
       [[block:]]
 
       [[block:]]
      - ansible.builtin.get_url:
 
          [[url:]] https://www.openssl.org/source/openssl-3.0.7.tar.gz
 
          [[dest:]] /tmp/
 
 
 
       - [[package:]]
 
       - [[package:]]
           name: [[perl-IPC-Cmd]]
+
           name:  
 +
            - [[perl-IPC-Cmd]]
 +
            - [[perl-Test-Harness]]
 +
            - [[perl-Test-Simple]]
 +
            - [[make]]
 
           [[state: present]]
 
           [[state: present]]
 
+
    - name: Download and unarchive
+
      - ansible.builtin.[[unarchive]]:
      ansible.builtin.unarchive:
+
          src: https://www.openssl.org/source/openssl-1.1.1v.tar.gz
        src: https://www.openssl.org/source/openssl-3.0.7.tar.gz
+
          dest: /tmp/
        dest: /tmp/
+
          remote_src: yes
        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]]
 +
 +
      [[when: (Ansible)|when:]] [[ansible_distribution_major_version]] == '7'
  
  
Line 27: Line 34:
  
 
   
 
   
      - [[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 ==
 
== Related ==
 +
* https://www.openssl.org/source/openssl-1.1.1w.tar.gz
 +
* https://www.openssl.org/source/openssl-3.0.7.tar.gz
 
* [[Openssl]]
 
* [[Openssl]]
 
* <code>[[get_url]]</code>
 
* <code>[[get_url]]</code>
 
* [[unarchive]]
 
* [[unarchive]]
 +
* [[when: (Ansible)|when:]]
 +
* [[openssl version]]
  
 
== See also ==
 
== See also ==

Latest revision as of 15:39, 5 February 2024

Advertising: