An Ansible module for installing AUR packages.
If cower is available, it will be used to download packages. Otherwise, cURL will be used. Packages are installed via makepkg.
- Arch Linux (Obviously)
- cower (Optional)
- Clone this repo
- Copy or link the
aur
file into your global Ansible library (usually/usr/share/ansible
) or into the./library
folder alongside your top-level playbook
name
- required, name of the AUR package to installuser
- required, name of the user you want to install the package asdir
- optional, name of the directory you want to download AUR packages into. If this is left blank, the module will try to use~/aur
for the specified user.skip_pgp
- optional, whether makepkg should skip verification of PGP signatures of source files. Defaults to false. This may be useful when installing packages on a target node with no keyring established.
# Install package foo
- aur: name=foo user=someone
# Install package foo with a specific download directory
- aur: name=foo dir=/opt/packages/aur user=someone
# Install package foo without checking PGP signature
- aur: name=foo user=someone skip_pgp=yes
If you wouldn't like to install AUR packages by normal user, you can create a system user aurman
(or another one which you like) as AUR manager:
- name: New user for AUR management
user:
name: aurman
comment: "AUR manager"
shell: /bin/nologin
home: /var/lib/aurman
system: yes