Closed hryamzik closed 3 years ago
That's to be expected. NGINX Open Source is not supported/available on Amazon Linux 2. You might be able to install some version of NGINX by setting nginx_install_from: os_repository
if Amazon Linux 2 has an NGINX package available in its packages repository.
Two workarounds here:
- command: amazon-linux-extras install nginx1 -y
args:
creates: /sbin/nginx
Or use epel for more recent version, not in ansible format as first way worked fine for me:
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum-config-manager --enable epel
yum install -y nginx
I get the following errors:
Your OS, Amazon is not supported by NGINX Open Source
When installing on amazon linux.
Ami is
ami-0528a5175983e7f28
(amzn2-ami-hvm-2.0*
).