Code Monkey home page Code Monkey logo

Comments (2)

geerlingguy avatar geerlingguy commented on June 15, 2024 4

Apparently that issue's also been locked in addition to closed, so... I guess this will never change and I'll need to add an extra step into the process for every role I create that uses any modules that aren't in Ansible core.

Grr.

from ansible-content-testing.

geerlingguy avatar geerlingguy commented on June 15, 2024

So before the steps were:

ansible-galaxy init myrole
[copy tasks into new role main/tasks.yml]
[run playbook]

And copy and paste tasks from playbook into myrole.

Now steps are:

ansible-galaxy init myrole
[copy tasks into new role main/tasks.yml]
[run playbook]
<playbook run breaks>
[figure out which tasks I just copied and pasted require which collections in the playbook]
nano myrole/metadata/main.yml
[edit to add `collections:` stuff from playbook]
[save file]
[run playbooks]

And finally the tasks in the role should work the same as they did in the playbook.

Now, for many of my playbooks, where I may have multiple collections defined, I will have to also figure out which ones to add to my role meta file, since I may have one or more on the playbook level that are not needed in the role.

This is a lot more mental burden.

from ansible-content-testing.

Related Issues (10)

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.