From f4ee05f46e2cbe1865ad42dd765e271439aced42 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Fri, 17 Mar 2017 19:12:21 +0100 Subject: added setup_fastd.yml playbook current features: - install yaourt - install packages for admins --- roles/install_yaourt/tasks/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 roles/install_yaourt/tasks/main.yml (limited to 'roles/install_yaourt/tasks/main.yml') diff --git a/roles/install_yaourt/tasks/main.yml b/roles/install_yaourt/tasks/main.yml new file mode 100644 index 0000000..4ddbcd5 --- /dev/null +++ b/roles/install_yaourt/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: add aur user {{ aur_user }} + user: + name: '{{ aur_user }}' + group: users + groups: wheel + +- name: allow group wheel to sudo + copy: + src: 10-wheel + dest: /etc/sudoers.d/ + +- name: "add archlinux.fr repository to pacman" + lineinfile: + dest: "/etc/pacman.conf" + state: "present" + line: "{{ item }}" + with_items: + - "[archlinuxfr]" + - "SigLevel = Never" + - "Server = http://repo.archlinux.fr/$arch" + +- name: "install yaourt" + pacman: + update_cache: yes + name: "yaourt" + state: "present" -- cgit v1.2.3-54-g00ecf