/ansible-pacaur

An Ansible module for maintaining AUR packages with pacaur.

Primary LanguagePythonMIT LicenseMIT

ansible-pacaur

Forked from ansible-packer

An Ansible module for installing AUR packages via the pacaur AUR helper.

This assumes your target node already has pacaur and its dependecies installed.

Dependencies (Managed Node)

Installation

  1. Clone this repo
  2. 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

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
- 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

Todo

  • Add inline, ansible-doc compatible documentation
  • ???

Have other ideas? Better way of doing something? Open an issue or a pull request.