mirror of https://github.com/kewlfft/ansible-aur
Adding pikaur helper
parent
4fa1048430
commit
7eb6f2619a
13
README.md
13
README.md
|
@ -1,18 +1,19 @@
|
||||||
# Ansible AUR package manager
|
# Ansible AUR package manager
|
||||||
Ansible module to use some AUR helpers as well as a simple internal implementation as a fallback. The following helpers are supported and automatically selected in the order they are listed:
|
Ansible module to use some AUR helpers as well as a simple internal implementation as a fallback. The following helpers are supported and automatically selected in the order they are listed:
|
||||||
- [pacaur](https://github.com/rmarquis/pacaur)
|
- [pacaur](https://github.com/rmarquis/pacaur)
|
||||||
|
- [pikaur](https://github.com/actionless/pikaur)
|
||||||
- [trizen](https://github.com/trizen/trizen)
|
- [trizen](https://github.com/trizen/trizen)
|
||||||
- [yaourt](https://github.com/archlinuxfr/yaourt)
|
- [yaourt](https://github.com/archlinuxfr/yaourt)
|
||||||
- [yay](https://github.com/Jguer/yay)
|
- [yay](https://github.com/Jguer/yay)
|
||||||
- internal helper
|
- internal helper
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|parameter |required |default |choices |comments|
|
|parameter |required |default |choices |comments|
|
||||||
|--- |--- |--- |--- |---|
|
|--- |--- |--- |--- |---|
|
||||||
|name |no | | |Name or list of names of the package(s) to install or upgrade.|
|
|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.|
|
|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.|
|
|use |no |auto |auto, pacaur, picaur, 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.|
|
|skip_installed |no |no |yes, no |Skip operations if the package is present.|
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
* Either *name* or *upgrade* is required, both cannot be used together.
|
* Either *name* or *upgrade* is required, both cannot be used together.
|
||||||
|
|
3
aur.py
3
aur.py
|
@ -10,6 +10,7 @@ import tempfile
|
||||||
|
|
||||||
use_cmd = {
|
use_cmd = {
|
||||||
'pacaur': ['env', 'LC_ALL=C', 'pacaur', '-S', '--noconfirm', '--noedit', '--needed', '--aur'],
|
'pacaur': ['env', 'LC_ALL=C', 'pacaur', '-S', '--noconfirm', '--noedit', '--needed', '--aur'],
|
||||||
|
'pikaur': ['env', 'LC_ALL=C', 'pacaur', '-S', '--noconfirm', '--noedit', '--needed'],
|
||||||
'trizen': ['env', 'LC_ALL=C', 'trizen', '-S', '--noconfirm', '--noedit', '--needed', '--aur'],
|
'trizen': ['env', 'LC_ALL=C', 'trizen', '-S', '--noconfirm', '--noedit', '--needed', '--aur'],
|
||||||
'yaourt': ['env', 'LC_ALL=C', 'yaourt', '-S', '--noconfirm', '--needed'],
|
'yaourt': ['env', 'LC_ALL=C', 'yaourt', '-S', '--noconfirm', '--needed'],
|
||||||
'yay': ['env', 'LC_ALL=C', 'yay', '-S', '--noconfirm'],
|
'yay': ['env', 'LC_ALL=C', 'yay', '-S', '--noconfirm'],
|
||||||
|
@ -92,7 +93,7 @@ def main():
|
||||||
},
|
},
|
||||||
'use': {
|
'use': {
|
||||||
'default': 'auto',
|
'default': 'auto',
|
||||||
'choices': ['auto', 'pacaur', 'trizen', 'yaourt', 'yay', 'internal'],
|
'choices': ['auto', 'pacaur', 'pikaur', 'trizen', 'yaourt', 'yay', 'internal'],
|
||||||
},
|
},
|
||||||
'skip_installed': {
|
'skip_installed': {
|
||||||
'default': 'no',
|
'default': 'no',
|
||||||
|
|
Loading…
Reference in New Issue