From a3719c7b43ea207aee2211b63d595c1ec96ad545 Mon Sep 17 00:00:00 2001 From: John Shuping Date: Wed, 4 Nov 2015 09:38:47 -0500 Subject: [PATCH] Add packages potentially helpful to new arch users --- roles/base/tasks/main.yml | 1 + roles/base/tasks/orpie.yml | 17 +++++++++++++++++ roles/base/tasks/packages.yml | 3 +++ roles/i3/tasks/rofi.yml | 32 ++++++++++++++++++++++++++++++++ roles/laptop/tasks/light-git.yml | 17 +++++++++++++++++ roles/laptop/tasks/main.yml | 1 + roles/mail/tasks/main.yml | 19 +++++++++++++++++++ roles/network/tasks/main.yml | 14 ++++++++++++++ roles/network/tasks/pdsh.yml | 17 +++++++++++++++++ roles/x/tasks/autocutsel.yml | 3 +++ roles/x/tasks/main.yml | 9 ++++++++- roles/yubikey/tasks/main.yml | 7 +++++++ 12 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 roles/base/tasks/orpie.yml create mode 100644 roles/laptop/tasks/light-git.yml create mode 100644 roles/network/tasks/pdsh.yml create mode 100644 roles/x/tasks/autocutsel.yml diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 03c65c5..c2b0266 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -15,3 +15,4 @@ - include: cron.yml - include: ssh.yml - include: dotfiles.yml +- include: orpie.yml diff --git a/roles/base/tasks/orpie.yml b/roles/base/tasks/orpie.yml new file mode 100644 index 0000000..5d95bf5 --- /dev/null +++ b/roles/base/tasks/orpie.yml @@ -0,0 +1,17 @@ +--- +- name: Download orpie + command: cower -dq orpie + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/orpie + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install orpie + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/orpie" + tags: + - aur + become: yes + become_user: "{{ user.name }}" + diff --git a/roles/base/tasks/packages.yml b/roles/base/tasks/packages.yml index f25c2fb..5fdb3d6 100644 --- a/roles/base/tasks/packages.yml +++ b/roles/base/tasks/packages.yml @@ -17,6 +17,9 @@ - unrar - bc - ranger + - strace + - lsof + - sysstat - name: Create AUR directory file: path=/home/{{ user.name }}/{{ aur.dir }} diff --git a/roles/i3/tasks/rofi.yml b/roles/i3/tasks/rofi.yml index a98262f..4e018d3 100644 --- a/roles/i3/tasks/rofi.yml +++ b/roles/i3/tasks/rofi.yml @@ -33,3 +33,35 @@ - name: Install i3-wm for rofi window switching pacman: name=i3-wm state=present + +- name: Download teiler (rofi screenshot app) + command: cower -dq teiler-git + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/teiler-git + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install teiler + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/teiler-git" + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Download copyq (clipboard mgr) + command: cower -dq copyq-git + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/copyq-git + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install copyq + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/copyq-git" + tags: + - aur + become: yes + become_user: "{{ user.name }}" diff --git a/roles/laptop/tasks/light-git.yml b/roles/laptop/tasks/light-git.yml new file mode 100644 index 0000000..3cb711f --- /dev/null +++ b/roles/laptop/tasks/light-git.yml @@ -0,0 +1,17 @@ +--- +- name: Download light-git + command: cower -dq light-git + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/light-git + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install light-git + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/light-git" + tags: + - aur + become: yes + become_user: "{{ user.name }}" + diff --git a/roles/laptop/tasks/main.yml b/roles/laptop/tasks/main.yml index 40bfb26..3c7717f 100644 --- a/roles/laptop/tasks/main.yml +++ b/roles/laptop/tasks/main.yml @@ -1,5 +1,6 @@ --- - include: tlp.yml +- include: light-git.yml - name: Copy logind configuration file copy: src=logind.conf dest=/etc/systemd/logind.conf diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 1f762a4..c369108 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -36,3 +36,22 @@ - name: Install msmtp pacman: name=msmtp-mta state=present + +- name: Install notmuch + pacman: name=notmuch state=present + +- name: Download goobook-git + command: cower -dq goobook-git + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/goobook-git + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install goobook-git + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/goobook-git" + tags: + - aur + become: yes + become_user: "{{ user.name }}" diff --git a/roles/network/tasks/main.yml b/roles/network/tasks/main.yml index cf2a391..64ce705 100644 --- a/roles/network/tasks/main.yml +++ b/roles/network/tasks/main.yml @@ -5,6 +5,18 @@ - name: Install MTR pacman: name=mtr state=present +- name: Install net-tools + pacman: name=net-tools state=present + +- name: Install bind-tools + pacman: name=bind-tools state=present + +- name: Install whois + pacman: name=whois state=present + +- name: Install netcat + pacman: name=gnu-netcat state=present + - name: Install NetworkManager pacman: name=networkmanager state=present @@ -25,3 +37,5 @@ - name: Enable and start NetworkManager dispatcher service: name=NetworkManager-dispatcher.service enabled=yes state=started + +- include: pdsh.yml diff --git a/roles/network/tasks/pdsh.yml b/roles/network/tasks/pdsh.yml new file mode 100644 index 0000000..913e694 --- /dev/null +++ b/roles/network/tasks/pdsh.yml @@ -0,0 +1,17 @@ +--- +- name: Download pdsh + command: cower -dq pdsh + chdir=/home/{{ user.name }}/{{ aur.dir }} + creates=/home/{{ user.name }}/{{ aur.dir }}/pdsh + tags: + - aur + become: yes + become_user: "{{ user.name }}" + +- name: Build and install pdsh + command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/pdsh" + tags: + - aur + become: yes + become_user: "{{ user.name }}" + diff --git a/roles/x/tasks/autocutsel.yml b/roles/x/tasks/autocutsel.yml new file mode 100644 index 0000000..8ca06c9 --- /dev/null +++ b/roles/x/tasks/autocutsel.yml @@ -0,0 +1,3 @@ +--- +- name: Install autocutsel + pacman: name=autocutsel state=present diff --git a/roles/x/tasks/main.yml b/roles/x/tasks/main.yml index 88d6742..26e67b5 100644 --- a/roles/x/tasks/main.yml +++ b/roles/x/tasks/main.yml @@ -8,7 +8,13 @@ - name: Install xmodmap pacman: name=xorg-xmodmap state=present -- name: Install Intel video driver +- name: Install xdpyinfo + pacman: name=xorg-xdpyinfo state=present + +- name: Install xev + pacman: name=xorg-xev state=present + +- name: Install video driver(s) pacman: name={{ item }} state=present with_items: "{{ video_drivers }}" @@ -22,3 +28,4 @@ - include: autorandr.yml - include: srandrd.yml - include: termite.yml +- include: autocutsel.yml diff --git a/roles/yubikey/tasks/main.yml b/roles/yubikey/tasks/main.yml index 2b6de6e..90dbbcb 100644 --- a/roles/yubikey/tasks/main.yml +++ b/roles/yubikey/tasks/main.yml @@ -14,3 +14,10 @@ - aur become: yes become_user: "{{ user.name }}" + +- name: Install smartcard libs/tools + pacman: name={{ item }} state=present + with_items: + - pcsclite + - libusb-compat + - ccid