1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-13 23:31:30 +01:00
dotfiles/ansible/aur_packages/tasks/main.yml

Failed to ignore revisions in .git-blame-ignore-revs.

35 lines
804 B
YAML
Raw Normal View History

2024-07-04 12:21:21 +02:00
---
- name: Create build directory
file:
path: "/home/build"
state: directory
mode: "0700"
owner: nobody
- name: Install aur packages
block:
- name: Allow nobody user to run pacman
community.general.sudoers:
name: allow-nobody-pacman
user: nobody
commands:
- /usr/sbin/pacman
# noexec: true # required by makepkg
state: present
- name: Install packages
include_tasks: ./build_package.yml
vars:
package: "{{ item }}"
loop: "{{ aur_packages + aur_extra }} "
always:
- name: Disallow nobody user to run pacman
community.general.sudoers:
name: allow-nobody-pacman
user: nobody
commands:
- /usr/sbin/pacman
noexec: true
state: absent