internal helper added

This commit is contained in:
kewl fft
2017-12-31 18:12:28 +01:00
parent a34324db3b
commit 77701812e8
2 changed files with 77 additions and 27 deletions

View File

@@ -6,11 +6,12 @@ Ansible module to use some AUR helpers. The following helpers are supported and
- [yay](https://github.com/Jguer/yay)
## Options
|parameter|required |default |choices |comments|
|--- |--- |--- |--- |---|
|name |no | | |Name or list of names of the package(s) to install or upgrade.|
|upgrade |no |no |yes, no |Whether or not to upgrade whole system.|
|use |no |auto |auto, pacaur, trizen, yaourt, yay |The helper to use, 'auto' uses the first known helper found.|
|parameter |required |default |choices |comments|
|--- |--- |--- |--- |---|
|name |no | | |Name or list of names of the package(s) to install or upgrade.|
|upgrade |no |no |yes, no |Whether or not to upgrade whole system.|
|use |no |auto |auto, pacaur, trizen, yaourt, yay, internal |The helper to use, 'auto' uses the first known helper found, 'internal' uses the internal helper.|
|skip_installed |no |no |yes, no |Skip operations if the package is present.|
### Note
Either *name* or *upgrade* is required, both can not be used together.
@@ -37,6 +38,11 @@ ln --symbolic ansible-aur/aur.py aur
### Examples
Use it in a task, as in the following examples:
```
# Install trizen using the internal helper, skip if trizen is already installed
- aur: name=trizen use=internal skip_installed=true
become: yes
become_user: user_that_has_nopasswd_in_sudoers_for_pacman_use
# Install - using the first known helper found
- aur: name=package_name
become: yes