Updating nginx version via Ansible on CentOS

I have the below ansible play, where I am installing nginx :

- name: Install nginx
  yum:
    name: nginx-1.18.0
    state: present

Now, when I am trying it to update to the newer version of nginx 1.20.1, seeing some error . Code :

- name: Install nginx
  yum:
    name: nginx-1.20.1
    state: present

But When I looked in my server, and tried to check the nginx version it gave one error :

nginx: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

nginx[2406]: /usr/sbin/nginx: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Before upgrading, I was using nginx-1.18.0 and it was working fine not giving any error as above.

What Am I missing here. Any help is appreciated.

TIA



Read more here: https://stackoverflow.com/questions/68468542/updating-nginx-version-via-ansible-on-centos

Content Attribution

This content was originally published by Legitimate_Figure_4430 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: