mirror of https://github.com/kewlfft/ansible-aur
README
parent
4a47bd34e6
commit
f15e4d1f9b
10
README.md
10
README.md
|
@ -63,14 +63,14 @@ Use it in a task, as in the following examples:
|
||||||
[...]
|
[...]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create aur_builder
|
### Create "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 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, *aur_builder*, that has no need for password with pacman in sudoers.
|
||||||
This can be done with Ansible with the following actions:
|
This can be done in Ansible with the following actions:
|
||||||
```
|
```
|
||||||
- user: name=aur_builder
|
- user: name=aur_builder
|
||||||
|
|
||||||
- copy:
|
- copy:
|
||||||
path: /etc/sudoers.d/aur_builder-allow-to-sudo-pacman
|
path: /etc/sudoers.d/aur_builder-allow-to-sudo-pacman
|
||||||
content: 'aur-builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
content: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
||||||
validate: 'visudo -cf %s'
|
validate: /usr/sbin/visudo -cf %s
|
||||||
```
|
```
|
Loading…
Reference in New Issue