Git Product home page Git Product logo

Comments (3)

alessfg avatar alessfg commented on July 18, 2024

Hm that is some interesting behaviour. By all means, in my testing, if I run a playbook with an incorrect variable and then rerun it with a correct variable, the validation task will succeed on the second run. The Register NGINX Config task is run after a new template is deployed so it should not be failing if the config has been fixed. I'll try to do some further testing with the collection and see if I can replicate the issue.

from ansible-role-nginx-config.

alessfg avatar alessfg commented on July 18, 2024

So, after some more digging, I think I might now what the issue is. The check config handler only runs at the end of the playbook after the config is changed, so the issue is not with the nginx_config role.

However, you might be encountering an issue that'll happen if you run both the nginx and nginx_config roles within the same playbook if you set nginx_debug_output: true in the nginx role variables. The nginx role will try to verify the config and fail, since the nginx role would be running before the nginx_config role runs and fixes the config. If you set nginx_debug_output: false, you should be able to avoid running into the issue you are describing.

from ansible-role-nginx-config.

alessfg avatar alessfg commented on July 18, 2024

There's been no updates in a while so I'm going to go ahead and close this. I'm pretty sure the issue is related to what I described above. Do note that I would recommend only running the nginx role only once in your workflows, and then run the nginx_config role as many times as necessary.

from ansible-role-nginx-config.

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.