Giter VIP home page Giter VIP logo

Comments (5)

gofrolist avatar gofrolist commented on June 27, 2024

Can you provide me a link to your github actions?
I will try to reproduce

from molecule-action.

anarion80 avatar anarion80 commented on June 27, 2024

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.

gofrolist avatar gofrolist commented on June 27, 2024

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.

anarion80 avatar anarion80 commented on June 27, 2024

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.

dbrennand avatar dbrennand commented on June 27, 2024

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)

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.