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

From wikieduonline
Jump to navigation Jump to search
(Created page with " #!/usr/bin/env ansible-playbook - hosts: YOUR_HOSTNAME remote_user: YOUR_REMOTEUSER become: yes connection: ssh tasks:...")
 
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
 
 
 
 
  #![[/usr/bin/env]] [[ansible-playbook]]  
 
  #![[/usr/bin/env]] [[ansible-playbook]]  
 
   
 
   
  - [[hosts:]] YOUR_HOSTNAME
+
  - [[hosts:]] localhost
   [[remote_user:]] YOUR_REMOTEUSER  
+
   #[[remote_user:]] YOUR_REMOTEUSER  
   [[become:]] yes
+
   #[[become:]] yes
   [[connection:]] ssh
+
   #[[connection:]] ssh
 
   
 
   
 
   [[tasks:]]
 
   [[tasks:]]
Line 15: Line 10:
 
       [[block:]]
 
       [[block:]]
 
       - [[package:]]
 
       - [[package:]]
           name: [[sysstat]]
+
           name:  
 +
            - [[perl-IPC-Cmd]]
 +
            - [[perl-Test-Harness]]
 +
            - [[perl-Test-Simple]]
 +
            - [[make]]
 
           [[state: present]]
 
           [[state: present]]
 
   
 
   
       - [[lineinfile:]]
+
       - ansible.builtin.[[unarchive]]:
           path: [[/etc/default/sysstat]]
+
           src: https://www.openssl.org/source/openssl-1.1.1v.tar.gz
           state: present
+
           dest: /tmp/
           backrefs: yes
+
           remote_src: yes
          [[regexp]]: '^ENABLED="false"'
+
          line: 'ENABLED="true"'
+
      - [[shell:]] cd /tmp/openssl-*/ && ./config && make && make test && [[make install]]
 +
 +
      - [[shell:]] echo "[[/usr/local/lib64]]" > [[/etc/ld.so.conf.d/openssl.conf]]
 
   
 
   
       - [[service:]]
+
       - [[shell:]] [[ldconfig]]
          name: sysstat
+
            state: started
+
      [[when: (Ansible)|when:]] [[ansible_distribution_major_version]] == '7'
          enabled: yes
+
 
      when: [[ansible_distribution]] == 'Ubuntu'
+
 
  
 +
 +
 +
     
 +
== Related ==
 +
* https://www.openssl.org/source/openssl-1.1.1w.tar.gz
 +
* https://www.openssl.org/source/openssl-3.0.7.tar.gz
 +
* [[Openssl]]
 +
* <code>[[get_url]]</code>
 +
* [[unarchive]]
 +
* [[when: (Ansible)|when:]]
 +
* [[openssl version]]
  
 
== See also ==
 
== See also ==

Latest revision as of 15:39, 5 February 2024

Advertising: