An Ansible module for installing AUR packages via the pacaur AUR helper.
This assumes your target node already has pacaur and its dependecies installed.
- Arch Linux (Obviously)
- jshon for pacaur
- pacaur
- Clone this repo
- Copy or link the
pacaur
file into your global Ansible library (usually/usr/share/ansible
) or into the./library
folder alongside your top-level playbook
Pretty much identical to the pacman module. Note that package status, removal, the corresponding pacman
commands are used (-Q
, -R
, respectively).
More detailed docs are on the way, but in general:
name
- required, name of the AUR package to installrecurse
- optional, yes/no, whether to recursively remove packages. See pacman module docsstate
- optional, present/absent, whether the package needs to be installed or not
# Install package foo
- pacaur: name=foo state=present
# Remove packages foo and bar
- pacaur: name=foo,bar state=absent
# Recursively remove package baz
- pacaur: name=baz state=absent recurse=yes
- Add inline, ansible-doc compatible documentation
- ???
Have other ideas? Better way of doing something? Open an issue or a pull request.