Giter Club home page Giter Club logo

Comments (3)

ahuffman avatar ahuffman commented on June 12, 2024

That's an interesting use-case and certainly something that could be done. I believe that work would require a custom module to parse the files and return formatted data. A python module would be the best way to attack this. I'm going to leave this open for now, because I'm working on some similar stuff, not necessarily for sudoers, but I like the idea.

from ansible-sudoers.

gforster avatar gforster commented on June 12, 2024

@ahuffman sounds good. Anything I can do to incentivize that module? I'll start working on something myself, but I'm painfully slow with python

from ansible-sudoers.

ahuffman avatar ahuffman commented on June 12, 2024

@gforster I spun up a separate project for this request. I have some initial work done on it.
Right now it can parse your /etc/sudoers file, determine the indudedir and included files, a dictionary 'sudoers_files' that contains a list of all parsed sudoers files with raw config lines, path, and defaults (eventually it'll parse more items), then it spits out an ansible_facts['sudoers'] dictionary.

The repo where this work will be continued is located here: https://github.com/ahuffman/ansible-role-scan-sudoers. I'll close this issue since I'm spinning the work off into it's own project.

Feel free to contribute to the work on the new repo!

from ansible-sudoers.

Related Issues (18)

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.