Code Monkey home page Code Monkey logo

Comments (7)

jdauphant avatar jdauphant commented on June 21, 2024

Maybe @jrobeson @etcet @victorluft or @mtotheikle can help on this issue and suggestion a solution.
An MR will be welcomed

Best

from ansible-role-nginx.

basnijholt avatar basnijholt commented on June 21, 2024

Having the same issue, trying to install nginx in this Dockerimage: https://hub.docker.com/r/ansible/centos7-ansible/

PumpkinSeed's suggestion fixed it for me.

from ansible-role-nginx.

aries1980 avatar aries1980 commented on June 21, 2024

If the Nginx repo maintainers follow the same version pattern as EL, I see no issue enabling the default repos.

from ansible-role-nginx.

jdauphant avatar jdauphant commented on June 21, 2024

We can try something like that:

yum: name={{ item }} state=present enablerepo={{ "nginx," if nginx_official_repo else "" }}

or

yum: name={{ item }} state=present enablerepo={{ "nginx," if nginx_official_repo else "" }}{{ yum_epel_repo }},{{ yum_base_repo }}

If you have a solution that keep the possibility to use the official repo, it could be very nice.
A MR will be welcomed :)

from ansible-role-nginx.

PumpkinSeed avatar PumpkinSeed commented on June 21, 2024

I tried the first:

yum: name={{ item }} state=present enablerepo={{ "nginx," if nginx_official_repo else "" }}

It is working correctly, thanks.

from ansible-role-nginx.

jdauphant avatar jdauphant commented on June 21, 2024

@PumpkinSeed Thanks, I can't test it on my side. Can you send a pull request with the tested solution ?

from ansible-role-nginx.

PumpkinSeed avatar PumpkinSeed commented on June 21, 2024

@jdauphant Yes, I will do it asap.

from ansible-role-nginx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.