mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-09-17 00:20:38 +03:00
internal helper added
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
||||
|
Reference in New Issue
Block a user