pull/1/head
kewl fft 2017-12-31 21:39:58 +01:00
parent 4a47bd34e6
commit f15e4d1f9b
1 changed files with 5 additions and 5 deletions

View File

@ -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
``` ```