Build AUR packages as separate user on arch

This commit is contained in:
2020-12-11 17:53:32 +01:00
parent ada9eb9475
commit 6a6aab3a88

View File

@@ -103,6 +103,14 @@
when: distro == 'fedora'
- block:
- name: create build user on arch
user:
name: makepkg
home: /var/lib/makepkg
create_home: true
shell: /bin/bash
system: true
- name: build paru on arch
shell: |
set -o errexit
@@ -121,7 +129,8 @@
args:
executable: /bin/bash
register: result
become: false # do not build as root!
become: true # do not build as root!
become_user: makepkg
changed_when: result.rc != 100
failed_when: result.rc not in (0, 100)