mirror of https://github.com/kewlfft/ansible-aur
README updated
parent
eb72f78ea2
commit
6471ac40ff
11
README.md
11
README.md
|
@ -17,7 +17,7 @@ Ansible module to use some AUR helpers as well as a simple internal implementati
|
||||||
### Note
|
### Note
|
||||||
* Either *name* or *upgrade* is required, both cannot be used together.
|
* Either *name* or *upgrade* is required, both cannot be used together.
|
||||||
* *skip_installed* cannot be used with *upgrade*.
|
* *skip_installed* cannot be used with *upgrade*.
|
||||||
* In the *use* *auto* mode, the internal helper is used as a fallback if no known helper is found
|
* In the *use*=*auto* mode, the internal helper is used as a fallback if no known helper is found.
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
1. Clone the *ansibe-aur* repository in your playbook custom-module directory:
|
1. Clone the *ansibe-aur* repository in your playbook custom-module directory:
|
||||||
|
@ -33,8 +33,9 @@ ln --symbolic ansible-aur/aur.py aur
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
### Warning
|
### Note
|
||||||
* It is recommended to use the official *pacman* module for removal or for system upgrade with the repositories, this module aims to cover the AUR.
|
* This module aims to cover the AUR only:
|
||||||
|
* For package removal or system upgrade with the repositories, it is recommended to use the official *pacman* module,
|
||||||
* Searches are limited to the AUR, using the *--aur* parameter, except for *yay* and *yaourt* which do not support the option and systematically also search the repositories.
|
* Searches are limited to the AUR, using the *--aur* parameter, except for *yay* and *yaourt* which do not support the option and systematically also search the repositories.
|
||||||
* A package is reinstalled only if an update is available, using the *--needed* parameter, except for *yay* which does not support it and systematically reinstalls.
|
* A package is reinstalled only if an update is available, using the *--needed* parameter, except for *yay* which does not support it and systematically reinstalls.
|
||||||
|
|
||||||
|
@ -63,8 +64,8 @@ Use it in a task, as in the following examples:
|
||||||
[...]
|
[...]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create an "aur_builder" user
|
### Create the "aur_builder" user
|
||||||
While Ansible expects to ssh as root, AUR helpers do not allow executing operations as root, they all fail with "you cannot perform this operation as root". It is therefore recommended to create a user, *aur_builder*, that has no need for password with pacman in sudoers.
|
While Ansible expects to SSH as root, AUR helpers do not allow executing operations as root, they all fail with "you cannot perform this operation as root". It is therefore recommended to create a user, that we will call for example *aur_builder*, that has no need for password with pacman in sudoers.
|
||||||
This can be done in Ansible with the following actions:
|
This can be done in Ansible with the following actions:
|
||||||
```
|
```
|
||||||
- user: name=aur_builder
|
- user: name=aur_builder
|
||||||
|
|
Loading…
Reference in New Issue