Ansible_workstation/tasks/arch_aur.yml

35 lines
677 B
YAML
Raw Normal View History

2018-08-22 20:16:31 +00:00
---
- user:
name: aur_builder
group: wheel
2018-11-07 09:57:55 +00:00
tags:
- first_deployement
2018-08-22 20:22:38 +00:00
2018-08-22 20:16:31 +00:00
- lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
2018-08-22 20:22:38 +00:00
state: present
2018-08-22 20:16:31 +00:00
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
2018-11-07 09:57:55 +00:00
tags:
- first_deployement
2018-08-22 20:16:31 +00:00
- name: Git clone ansible-aur
git:
repo: https://github.com/kewlfft/ansible-aur.git
dest: ~/.ansible/plugins/modules/aur
version: master
accept_hostkey: yes
2018-11-07 09:49:21 +00:00
become: yes
2018-08-22 20:16:31 +00:00
become_user: aur_builder
2018-11-07 09:57:55 +00:00
tags:
- first_deployement
2018-08-22 20:16:31 +00:00
2018-08-22 20:20:26 +00:00
- name: Install Yay
aur:
name: yay
use: makepkg
skip_installed: true
2018-08-22 20:23:45 +00:00
become: yes
2018-08-22 20:20:26 +00:00
become_user: aur_builder