From f44121acbb0cf64aed72ba2c80bea638f0ee5201 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 22 Aug 2018 22:16:31 +0200 Subject: [PATCH] enable AUR for ansible --- Choux.yml | 1 + tasks/arch_aur.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tasks/arch_aur.yml diff --git a/Choux.yml b/Choux.yml index 3478ff3..2ea4318 100644 --- a/Choux.yml +++ b/Choux.yml @@ -9,4 +9,5 @@ - include: tasks/arch_base_packages.yml - include: tasks/users.yml - include: tasks/sudo.yml + - include: tasks/arch_aur.yml - include: tasks/arch_gnome.yml diff --git a/tasks/arch_aur.yml b/tasks/arch_aur.yml new file mode 100644 index 0000000..04f5909 --- /dev/null +++ b/tasks/arch_aur.yml @@ -0,0 +1,18 @@ +--- +- user: + name: aur_builder + group: wheel +- lineinfile: + path: /etc/sudoers.d/11-install-aur_builder + line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman' + create: yes + validate: 'visudo -cf %s' + +- name: Git clone ansible-aur + git: + repo: https://github.com/kewlfft/ansible-aur.git + dest: ~/.ansible/plugins/modules/aur + version: master + accept_hostkey: yes + become_user: aur_builder +