-
Notifications
You must be signed in to change notification settings - Fork 394
Doesn't install roles automatically #658
Comments
Thanks for using Ansible Container, and for taking the time to share your feedback! Not sure which version of Ansible Container you're using. I made a change in Tested this morning for the same with no I assume that you're not running from source, in which case, can you uninstall Ansible Container, and install from source. There's a guide here, if you need assistance. Thanks! |
@chouseknecht I just pulled and retried with same results. The last commit is 601dae5. To add more information, I have the
If I can do more to debug it, just ask for it. |
You shouldn't need anything in The fact that you're seeing an error is proof that it's at least attempting to now install the Notice in the
Or, you could set it to the following as well:
|
Is just a habit I guess.
It is indeed attempting to clone the jenkins role, but is failing (and I can't see why). When executing with debug, the relevant lines are: ` [WARNING]: - ansible-role-jenkins was NOT installed successfully: error ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list. If I execute the command
Confirmed that the .git url is correct. As said, the command works correctly when executed manually. |
I would try running this without Another thing I would try is removing this role (and any others) from
The idea (and the above syntax may not be perfect) is to create a running conductor. Then |
Ok, I'll try next week, thanks for your help. |
@chouseknecht I am testing out the latest
I don't pass my roles path in
After running the build in debug mode with no cache, I found that my conductor image was successfully installing the roles, but to a location where ansible-container does not look: /root/.ansible/roles
I was able to address this issue by adding |
I confirm that trying it without the line on ansible.cfg returns same error. Didn''t try the docker thing, since another person reported the error it. If you need it anyway I'll do it. |
Closing this, as I think we have it working now. If I'm wrong, please let me know, and we'll re-open it. Thanks, everyone! |
@chouseknecht Just FYI, yeah it works, thank you very much! |
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
When the roles aren't installed, ansible-container doesn't install them. I've tried different ways of installing them and I've find that the ones on galaxy are the only that work.
STEPS TO REPRODUCE
The role is installed when executing:
EXPECTED RESULTS
I expect that ansible-container installs the role when it doesn't find it on it's path. I've used this role just as an example, it doesn't work with any other. It seems to only work when the role is on ansible-galaxy.
ACTUAL RESULTS
It doesn't install the roles automatically.
The text was updated successfully, but these errors were encountered: