Giter VIP home page Giter VIP logo

Comments (3)

hhenkel avatar hhenkel commented on June 26, 2024 1

@galexrt I think it might be much easier not to use "lineinfile" but create the file as a whole with the data provided.
I think it is counter intuitive to set something to absent - imho it makes more sense to have everything in a file if it is explicitly mentioned.

I can do a poc and create a pr if it is easier to discuss.

from ansible-kernel-modules.

galexrt avatar galexrt commented on June 26, 2024

@hhenkel The file is managed but only when for adding a module.
When autoload: false it should also be removed, which is currently not implemented.

needs to be absent when autoload: false and the other way around.

Do you see this as a way to fix your issue or would adding state: (absent|present) for the modules sound better?

from ansible-kernel-modules.

galexrt avatar galexrt commented on June 26, 2024

@hhenkel A poc PR sounds good! 👍

from ansible-kernel-modules.

Related Issues (1)

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.