Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Switch to Copier for generating Ansible Role #4

Open
ThomasSanson opened this issue Feb 23, 2023 · 0 comments
Open

Comments

@ThomasSanson
Copy link

Description

I'd like to suggest switching to Copier for generating documentation and continuous integration (CI) files for the Ansible roles managed by ansible-generator. Copier is an open-source tool that simplifies the process of generating projects and files from templates. It provides a simple syntax for describing the files to generate and the variables to use for customizing the generation process.

Benefits

Here are some benefits of using Copier that I think would be particularly useful for ansible-generator:

  • Simpler, more maintainable templates: Copier uses a straightforward syntax that makes it easy to describe the files to generate and the variables to use. This would make it easier for maintainers to update the templates as needed and for users to customize the generated files.
  • More flexibility: Copier provides a lot of flexibility in how it generates files. It can generate files from local templates or remote repositories, and it can even use Jinja2 templates to generate files dynamically based on the user's input. This would give users more options for how they generate their files.
  • More powerful templates: Copier provides a lot of built-in functions for working with files, directories, strings, and other data types. This would enable more powerful templates that could do things like generating files based on the current date or iterating over a list of items to generate multiple files.

Additional Information

Thank you for considering this suggestion! Please let me know if you have any questions or concerns.

@ThomasSanson ThomasSanson changed the title Feature Request: Switch to Copier for generating Ansible Role documentation and CI files Feature Request: Switch to Copier for generating Ansible Role Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant