Ansible_workstation/roles/arch_aur/tasks/main.yml

42 lines
835 B
YAML
Raw Normal View History

2022-01-05 10:25:33 +00:00
---
# tasks file for arch_aur
- name: Create the `aur_builder` user
become: yes
ansible.builtin.user:
name: aur_builder
system: no
2022-01-05 10:25:33 +00:00
create_home: yes
group: wheel
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
become: yes
ansible.builtin.lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
2022-01-12 14:09:49 +00:00
- name: Install base-devel and cmake
community.general.pacman:
2022-01-12 14:09:49 +00:00
name:
- base-devel
- cmake
2022-01-05 10:25:33 +00:00
state: present
- name: Install Yay
aur:
name: yay
use: makepkg
state: present
become: yes
become_user: aur_builder
- name: Install mkpasswd
aur:
name: mkpasswd
use: makepkg
state: present
become: yes
become_user: aur_builder