diff options
| author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 19:12:21 +0100 | 
|---|---|---|
| committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 19:12:21 +0100 | 
| commit | f4ee05f46e2cbe1865ad42dd765e271439aced42 (patch) | |
| tree | 8ce80900cbbb162d70be82f58a71142e42d7d260 /roles | |
| parent | e829ca802bb5819f78b8b2032c43eb04840eec23 (diff) | |
added setup_fastd.yml playbook
current features:
 - install yaourt
 - install packages for admins
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/install_admin_packages/tasks/main.yml | 13 | ||||
| -rw-r--r-- | roles/install_yaourt/files/10-wheel | 1 | ||||
| -rw-r--r-- | roles/install_yaourt/tasks/main.yml | 27 | 
3 files changed, 41 insertions, 0 deletions
| diff --git a/roles/install_admin_packages/tasks/main.yml b/roles/install_admin_packages/tasks/main.yml new file mode 100644 index 0000000..d3d920a --- /dev/null +++ b/roles/install_admin_packages/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: update pacman cache +  pacman: +      update_cache: yes +- name: install packages for admins +  pacman: +      name: '{{ item }}' +      state: present +  with_items: +      - rxvt-unicode-terminfo +      - bash-completion +      - vim +      - htop diff --git a/roles/install_yaourt/files/10-wheel b/roles/install_yaourt/files/10-wheel new file mode 100644 index 0000000..7c499c2 --- /dev/null +++ b/roles/install_yaourt/files/10-wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL) NOPASSWD: ALL 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" | 
