An open API service indexing awesome lists of open source software.

https://github.com/cdown/ansible-aur

An Ansible module for the pacaur and yaourt package managers.
https://github.com/cdown/ansible-aur

Last synced: about 1 year ago
JSON representation

An Ansible module for the pacaur and yaourt package managers.

Awesome Lists containing this project

README

          

*ansible-aur* is an ansible module to use some aur helpers.

Currently, we support the following AUR helpers:

- pacaur (recommended, default)
- yaourt

## Usage

1. Add as a submodule in your playbook:

```
mkdir -p library/external_modules
git submodule add git://github.com/cdown/ansible-aur.git library/external_modules/ansible-aur
```

2. Link the binary to the base of `library/`:

```
ln -s external_modules/ansible-aur/aur library/aur
```

3. Use it in a task, as in the following examples:

```
# Install (using pacaur)
- aur: name=yturl
become:yes
become_user: some_user_that_has_nopasswd_in_sudoers_for_pacman_u

# Install (using yaourt)
- aur: name=yturl tool=yaourt
[...]

# Update (using pacaur)
- aur: update=yes auronly=yes
[...]

# Remove (can also be done with the pacman resource)
- aur: name=yturl state=absent
[...]

# Remove recursively (can also be done with the pacman resource)
- aur: name=yturl state=absent recurse=true
[...]
```