nginxinc / ansible-role-nginx

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

Add support for nginx_version when compiling NGINX from source #661

Closed MohamedLamineAllal closed 9 months ago

MohamedLamineAllal commented 9 months ago

Note: this is a draft

Proposed changes

Before the change. The latest version is installed. And no ability to fix the version

Checklist

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

NOTE

alessfg commented 9 months ago

At first glance the changes look good!

Molecule does not support nested scenarios (folders) so you'd have to create a new scenario (e.g. source-version) and throw your tests in there. You'll also have to add the new scenario to the GH actions matrix 😁

MohamedLamineAllal commented 9 months ago

At first glance the changes look good!

Molecule does not support nested scenarios (folders) so you'd have to create a new scenario (e.g. source-version) and throw your tests in there. You'll also have to add the new scenario to the GH actions matrix 😁

@alessfg thank you. Changes applied as you suggested.

MohamedLamineAllal commented 9 months ago

@alessfg I did update the test, should be good now.

The test did fail with no space left in device. Why is that?

image

I noticed

platforms: # Oracle Linux 7 works in local tests but bugs out in GitHub actions for some undetermined reason

The old test did include Oracle

MohamedLamineAllal commented 9 months ago

TASK [nginxinc.nginx : (AlmaLinux/Amazon Linux/CentOS/Oracle Linux/RHEL/Rocky Linux) Install NGINX] *** fatal: [rhel-9]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'ubi-9-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}

Screenshot 2023-10-02 at 10 31 38 PM Screenshot 2023-10-02 at 10 33 01 PM
alessfg commented 9 months ago

This might be due to a temporary issue with an upstream repo, I'll rerun the tests πŸ˜„

alessfg commented 9 months ago

Merged. Thanks for the PR!