Comments (4)
Installed roles keep the same directory structure inside a roles directory.
eg
ansible-galaxy install rothgar.tomcat_and_java
by default wild be installed in /etc/ansible/roles/rothgar.tomcat_and_java with the roles subdirectory. You then can use the role inside a playbook with
- hosts: all
roles:
- role: rothgar.tomcat_and_java
openjdk: True
Ansible runs will look in all configured roles paths for the necessary roles. If you want to specify a folder for install you can use --roles-path=/path/to/install
instead.
Does that help?
from ansible-tomcat.
-
Don't assume your role is allowed in my /etc/ansible/roles.
I have a file 'requirements.yml':- src: rothgar.tomcat_and_java
path: roles
- src: rothgar.tomcat_and_java
To re-use your role local to my test project folder I do:
ansible-galaxy install --force -r requirements.yml
output
- downloading role 'tomcat_and_java', owned by rothgar
- downloading role from https://github.com/rothgar/ansible-tomcat/archive/master.tar.gz
- extracting rothgar.tomcat_and_java to roles/rothgar.tomcat_and_java
- rothgar.tomcat_and_java was installed successfully
Now this does not compute because the directory roles/rothgar.tomcat_and_java contains another roles directory with a 'common' role. If I move everything in that directory 2 levels up (mv * ../..) then some stuff starts to work. (unfortunately with more errors.)
summary: non-relocatable role due to directory structure.
from ansible-tomcat.
@bbaassssiiee I think I fixed the directory structure so It will work as expected for you. Please let me know if this works now.
I think galaxy installs may take a bit longer to update from the upstream repo but it should be ready to test soon.
from ansible-tomcat.
Yes the directory structure is OK like this.
from ansible-tomcat.
Related Issues (3)
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.