Skip to content

An Ansible module for maintaining AUR packages with packer.

License

Notifications You must be signed in to change notification settings

sanderboom/ansible-pacaur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ansible-pacaur

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.

About

An Ansible module for maintaining AUR packages with packer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%