GithubHelp home page GithubHelp logo

Comments (2)

kewlfft avatar kewlfft commented on July 17, 2024

thanks there is something wrong with your pkgver() though, it should no show master in the version
what about:
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'

Also is /usr/share/ansible/plugins/modules/ standard? what about /usr/share/ansible/library ?

from ansible-aur.

panchoh avatar panchoh commented on July 17, 2024

Thanks for the heads up!
I've fixed pkgver() following your suggestion; I had to add --tags, though, otherwise it fails:

$ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  
  
fatal: No annotated tags can describe '39541acc7867f9da8b944e5e27ebd24352a9f673'.
However, there were unannotated tags: try --tags.

Regarding the path to the modules, I just followed what the manpage says:

$ man ansible
...
       -M, --module-path
           prepend colon-separated path(s) to module library (default=[u'/home/jenkins/.ansible/plugins/modules',
           u'/usr/share/ansible/plugins/modules'])

If I place the module under /usr/share/ansible/library it fails horribly with a

$ ansible -vvvv -m aur localhost
ansible 2.5.3
  config file = /home/pancho/.ansible.cfg
  configured module search path = ['/home/pancho/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /bin/ansible
  python version = 3.6.5 (default, May 11 2018, 04:00:52) [GCC 8.1.0]
Using /home/pancho/.ansible.cfg as config file
setting up inventory plugins
 [WARNING]: Unable to parse /home/pancho/hosts as an inventory source

 [WARNING]: No inventory was parsed, only implicit localhost is available

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python3.6/site-packages/ansible/plugins/callback/minimal.py
META: ran handlers
localhost | FAILED! => {
    "msg": "The module aur was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git pull --rebase' to correct this problem."
}
$

from ansible-aur.

Related Issues (20)

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.