Comments (5)
Can you provide me a link to your github actions?
I will try to reproduce
from molecule-action.
Here is the action in question: https://github.com/anarion80/ansible-nas/blob/main/.github/workflows/integration.yml
Here is the action result: https://github.com/anarion80/ansible-nas/actions/runs/8033790401/job/21944642579
And here are all my unsuccessful attempts to fix this: https://github.com/anarion80/ansible-nas/tree/fix_docker_molecule
from molecule-action.
These ansible collections should be installed in a prerun
step using requirements.yml
file but because there is a specific folder structure you're using and option molecule_working_dir: ${{ matrix.role }}
action goes into matrix.role
folder and can't find requirements.yml
and didn't install ansible collections.
I tried to specify path to this file but unfortunately it didn't work
dependency:
name: galaxy
options:
role-file: ../../requirements.yml
As a workaround you can create a symlink of requirements.yml
in every roles folder
I created a PR as example for you anarion80/ansible-nas#110
from molecule-action.
Thanks! It seems to be working with this workaround: https://github.com/anarion80/ansible-nas/actions/runs/8139600112 (although I need to now fix all the neglected individual tests).
So although I was hoping for your action to just include the community module(s) or full ansible inside, I can take this and you can close the issue.
from molecule-action.
I just ran into this problem in a CI run for one of my roles: https://github.com/dbrennand/ansible-role-autorestic/actions/runs/9362630720/job/25771742820
The issue for me was because I modified the default molecule test_sequence
in dbrennand/ansible-role-autorestic@b652325
It seems that the dependency
stage seems to install the community.docker
collection?
from molecule-action.
Related Issues (14)
- Where is the molecule.yml meant to reside and what contents should it have?
- Make v1.1? HOT 1
- Molecule version? HOT 2
- Add ability to override molecule version HOT 4
- Using molecule_working_dir leads to "can't cd - No such file or directory" HOT 1
- ansible-lint is unavailable HOT 3
- Failed to find required executable rsync HOT 4
- Using earlier versons of action always uses latest version of container HOT 3
- Support `poetry run` HOT 1
- CRITICAL 'molecule/default/molecule.yml' glob failed. Exiting. HOT 3
- README: `molecule-working-dir` is invalid input name
- Molecule verify no more working HOT 1
- Add molecule lint in docker image
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 molecule-action.