Comments (2)
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.
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)
- Set up initial playbook for testing HOT 3
- Have the same-named role across two collections, and ensure that both run HOT 3
- Current stable Ansible version failing when running example.two.test role HOT 3
- Switch back to Ansible on PyPi for 2.10 builds
- Something's breaking with local collection roles and ansible-base / acd HOT 10
- Test playbook(s) in CI - GitHub Actions HOT 1
- Figure out how to run on ACD (Ansible Community Distribution) HOT 4
- Test tombstoning PR against ACD installation from #3 HOT 2
- Add custom plugin that imports from a module_util in community.general HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-content-testing.