Comments (2)
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.
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)
- Role name kewlfft.aur does not match ``^[a-z][a-z0-9_]+$`` pattern HOT 4
- pkglist support? HOT 2
- Add ability to remove packages, with state: absent HOT 3
- Add ability to force rebuild packages HOT 2
- Add noconfirm and noedit HOT 1
- Add Paru as a helper HOT 2
- Installing an already installed package with paru gives an error HOT 3
- Move to collection HOT 1
- getting temporary directory problem HOT 4
- --diff should show packages that were installed/upgrade HOT 2
- update_cache is an unsupported parameter HOT 2
- Setting `name` to an empty list HOT 1
- Support aurutils AUR helper
- local_pkgbuild: Support paru HOT 1
- Using this module as a backend for ansible.builtin.package HOT 3
- Ansible 6.0 incompatibility HOT 2
- Deprecation warning for `CmdMixin` (used in `CmdModuleHelper` and `CmdStateModuleHelper`) HOT 1
- Reinstall doesn't report change HOT 1
- Upgrading packages to latest with paru failes because of "--needed" parameter HOT 2
- How to automatically confirm removing conflicting package?
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-aur.