Giter Site home page Giter Site logo

directory tree too deep about ansible-tomcat HOT 4 CLOSED

rothgar avatar rothgar commented on June 18, 2024
directory tree too deep

from ansible-tomcat.

Comments (4)

rothgar avatar rothgar commented on June 18, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on June 18, 2024
  1. 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

To re-use your role local to my test project folder I do:
ansible-galaxy install --force -r requirements.yml
output

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.

rothgar avatar rothgar commented on June 18, 2024

@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.

bbaassssiiee avatar bbaassssiiee commented on June 18, 2024

Yes the directory structure is OK like this.

from ansible-tomcat.

Related Issues (3)

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.