ansible-packer
ansible-packer copied to clipboard
An Ansible module for maintaining AUR packages with packer.
ansible-packer
An Ansible module for installing AUR packages via the packer AUR helper.
This assumes your target node already has packer and its dependecies installed.
Dependencies (Managed Node)
- Arch Linux (Obviously)
- jshon for packer
- packer
Installation
- Clone this repo
- Copy or link the
packer
file into your global Ansible library (usually/usr/share/ansible
) or into the./library
folder alongside your top-level playbook
Usage
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:
Options
-
name
- required, name of the AUR package to install -
recurse
- optional, yes/no, whether to recursively remove packages. See pacman module docs -
state
- optional, present/absent, whether the package needs to be installed or not
Examples
# Install package foo
- packer: name=foo state=present
# Remove packages foo and bar
- packer: name=foo,bar state=absent
# Recursively remove package baz
- packer: name=baz state=absent recurse=yes
Todo
- Add inline, ansible-doc compatible documentation
- ???
Have other ideas? Better way of doing something? Open an issue or a pull request.