Comments (5)
Never seen that. Just tested the following:
$ cat requirements.yml
---
- src: https://github.com/silpion/ansible-tomcat
name: silpion.tomcat
version: 2.1.0
$ ansible-galaxy install -r requirements.yml -p .
- extracting silpion.tomcat to ./silpion.tomcat
- silpion.tomcat was installed successfully
- adding dependency: silpion.util
- extracting silpion.util to ./silpion.util
- silpion.util was installed successfully
- adding dependency: silpion.lib
- extracting silpion.lib to ./silpion.lib
- silpion.lib was installed successfully
$ ls -lF
total 4
-rw------- 1 kusch users 93 Aug 25 10:24 requirements.yml
drwx------ 10 kusch users 420 Aug 25 10:25 silpion.lib/
drwx------ 12 kusch users 520 Aug 25 10:25 silpion.tomcat/
drwx------ 11 kusch users 480 Aug 25 10:25 silpion.util/
$ ansible --version
ansible 2.1.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
from ansible-tomcat.
Hi, I'd love to do that, but this is somewhat political. galaxy today uses tight github integration. github API is quite limited for us in terms of what Ansible is allowed to do. For that reason it is not impossible that Galaxy can do things it should not be allowed to.
We discussed this on Ansiblefest in London, discussed this here at Silpion, ... No solution up to now.
Our workaround for that is to use requirements yaml pointing src:
to github URL.
I fear there will be no quick solution for this particular issue here. I'll take it for another opportunity to create discussion at Silpion how to proceed with that, and have this issue kept open.
from ansible-tomcat.
That's understandable. The main issue with using src:
with the github URL is that you don't get the dependency resolution. This role becomes particularly cumbersome as its dependencies have dependencies. So my requirements file looks something like:
- src: https://github.com/silpion/ansible-lib
name: silpion.lib
version: 2.0.2
- src: https://github.com/silpion/ansible-util
name: silpion.util
version: 2.0.4
- src: https://github.com/silpion/ansible-tomcat
name: groover.tomcat
version: 2.1.0
Its now up to the end user to correctly manage this dependency chain.
One possible (but annoying) solution might be to create a separate GitHub organization that only hosts open source projects. Perhaps allowing galaxy access to that organization might be more acceptable.
from ansible-tomcat.
Ah, I see you have your dependencies specified as the GitHub sources now within these repos. I think its the case where you reference galaxy sources while installing from GitHub that you run into these isues.
Perfect, thanks!
from ansible-tomcat.
Hello, I've tried to install groover.tomcat role for my ansible solution and it failed on resolving dependency for slipion.util:
ansible-galaxy install -r requirements.yml
- downloading role 'tomcat', owned by groover
- downloading role from https://github.com/silpion/ansible-tomcat/archive/1.3.0.tar.gz
- extracting groover.tomcat to /etc/ansible/roles/groover.tomcat
- groover.tomcat was installed successfully
[DEPRECATION WARNING]: The comma separated role spec format, use the
yaml/explicit format instead..
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
- adding dependency: silpion.util
- downloading role 'util', owned by silpion
[WARNING]: - silpion.util was NOT installed successfully: - sorry, silpion.util
was not found on https://galaxy.ansible.com.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
I am going to try with custom dependencies with github urls which you provided here, but it's obviously a big confusion here. Also there is a confusion with role name registered in Ansible Galaxy - groover.tomcat and GitHub repo user slipion.
So I vote up to this issue to be solved if possible
from ansible-tomcat.
Related Issues (20)
- Vanilla install fails HOT 2
- Sysvinit process owner HOT 6
- Allow facts.j2 override HOT 2
- Missing folders on catalina instance HOT 1
- authbind? HOT 3
- wrong permissions for conf HOT 4
- Default role does not seem to work with Ansible 2. HOT 3
- Hangs at TASK [groover.tomcat : include]
- how to find the webapp path?
- [Question] Option for changes, but not install
- Tomcat 8.5.x support HOT 1
- CATALINA_OPTS not supported in systemd
- Detect tomcat version upgrade error HOT 2
- CATALINA_BASE vs CATALINA_HOME
- "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'general'" HOT 2
- Commit PR #31
- Error While using in ansible 2.4.1.0 HOT 1
- task syntax error with tomcat 8.5
- silpion.tomcat was not found on https://galaxy.ansible.com
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-tomcat.