added support for AUR helper on Arcj
This commit is contained in:
31
roles/base/tasks/software/aur_helper.yml
Normal file
31
roles/base/tasks/software/aur_helper.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: "[Arch] Install base-devel & git"
|
||||
pacman:
|
||||
name:
|
||||
- base-devel
|
||||
- git
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
|
||||
- name: "[Arch] Create AUR build user"
|
||||
user:
|
||||
name: "{{ aur_build_user }}"
|
||||
groups: ['wheel']
|
||||
create_home: yes
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
|
||||
- name: "[Arch] Allow AUR builder to use pacman without password"
|
||||
lineinfile:
|
||||
path: "/etc/sudoers.d/90-aur-builder"
|
||||
line: "{{ aur_build_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
|
||||
create: yes
|
||||
validate: "visudo -cf %s"
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
|
||||
- name: "[Arch] Install AUR helper"
|
||||
community.general.aur:
|
||||
name: "{{ aur_helper }}"
|
||||
state: present
|
||||
use: makepkg
|
||||
become_user: "{{ aur_build_user }}"
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
Reference in New Issue
Block a user