This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
"The role was not found" and "Failed to load container.yml" errors #963
Labels
stale-communication
Candidate for the closure due to stale communication
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
I get the following error
the role 'flask' was not found in ./roles:/src/roles:/etc/ansible/roles:
when attempting to build the container from within my Docker imagemac89/ansible-container
.I suspect it has something to do with my running ansible-container from within a Docker image, but I have no idea how to solve it.
Using the steps described here I can use external roles:
https://hub.docker.com/r/mac89/ansible-container/
However I cannot use
ansible-container install
which results in the errorcontainer.exceptions.AnsibleContainerGalaxyFatalException: Failed to load container.yml: [Errno 2] No such file or directory: '/src/con tainer.yml'
STEPS TO REPRODUCE
You can reproduce by using my Docker image and adding the volume mapping
/var/run/docker.sock:/var/run/docker.sock
and executing the commands below.EXPECTED RESULTS
The role to be found and the container to build
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: