nginxinc / ansible-role-nginx

Ansible role for installing NGINX
https://galaxy.ansible.com/nginxinc/nginx
Apache License 2.0
644 stars 348 forks source link

Install 'cryptography' using 'pip' Instead of Using System's Package Manager #596

Open jswongF5 opened 1 year ago

jswongF5 commented 1 year ago

Proposed changes

The cryptography package was installed using the OS's repo package manager. This PR will change from using the system's package manager to pip.

This is to resolve an error when running this role using Amazon Linux 2 (AL2). The python interpreter uses python2 in container tests but python3 on AL2 deployed in AWS. This role tries to install python3-cryptography which does not exists.

Checklist

Before creating a PR, run through this checklist and mark each as complete.