Is your feature request related to a problem? Please describe
Playing around with the latest Ubuntu 24.04 (Noble) release I noticed the role's validation fails:
ASK [nginxinc.nginx : Check whether you are using a supported NGINX distribution] **********************************************************************************************************
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ ansible_facts['distribution'] | lower in nginx_distributions.keys() |
list }}
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ (ansible_facts['distribution_version'] | regex_search('\d{1,2}\.\d{2}')
| float in nginx_distributions[ansible_facts['distribution'] | lower]['versions'] | map('float')) if ansible_facts['distribution'] | lower in ['alpine', 'ubuntu'] else
ansible_facts['distribution_major_version'] in nginx_distributions[ansible_facts['distribution'] | lower]['versions'] | string }}
fatal: [***]: FAILED! => {
"assertion": "{{ (ansible_facts['distribution_version'] | regex_search('\\d{1,2}\\.\\d{2}') | float in nginx_distributions[ansible_facts['distribution'] | lower]['versions'] | map('float')) if ansible_facts['distribution'] | lower in ['alpine', 'ubuntu'] else ansible_facts['distribution_major_version'] in nginx_distributions[ansible_facts['distribution'] | lower]['versions'] | string }}",
"changed": false,
"evaluated_to": false,
"msg": "Your distribution, Ubuntu 24.04 (x86_64), is not supported by NGINX Open Source."
}
...ignoring
Other than this validation error the role works on Noble. So does NGINX:
***:~$ nginx -v
nginx version: nginx/1.25.5
***:~$ systemctl status nginx
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-05-05 15:20:13 UTC; 3min 40s ago
Describe the solution you'd like
Update validation to include the latest Ubuntu 24.04 release.
Is your feature request related to a problem? Please describe
Playing around with the latest Ubuntu 24.04 (Noble) release I noticed the role's validation fails:
The role ran with default vars except for:
Other than this validation error the role works on Noble. So does NGINX:
Describe the solution you'd like
Update validation to include the latest Ubuntu 24.04 release.