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.
- Host: GitHub
- URL: https://github.com/cdown/ansible-aur
- Owner: cdown
- License: other
- Archived: true
- Created: 2015-02-06T17:33:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T19:03:15.000Z (almost 8 years ago)
- Last Synced: 2025-03-12T15:35:20.214Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 22
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
[...]
```