-
Notifications
You must be signed in to change notification settings - Fork 11
/
install-extra-packages.yml
117 lines (102 loc) · 3.4 KB
/
install-extra-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
- name: Basic system-wide software installation
hosts: all
become: yes
tasks:
- name: add asciinema PPA
apt_repository:
repo: ppa:zanchey/asciinema
codename: "{{ dist_override | default(omit) }}"
filename: "asciinema"
- name: Install extra terminal apt packages
apt:
name:
- asciinema # for recording teminal sessions
- ipython3 # interactive python shell
- pandoc # for diffing binary documents
- sshfs
state: latest
install_recommends: no
update_cache: yes
cache_valid_time: 3600
- name: Install packages relevant to graphical desktop
hosts: all
tags: desktop
tasks:
# this is needed for customizing firmware on my keyboardio
# TODO: reload udev: udevadm control --reload-rules && udevadm trigger
- name: configure udev rules for keyboardio
copy:
src: extras/60-kaleidoscope.rules
dest: /etc/udev/rules.d/60-kaleidoscope.rules
mode: 0755
become: yes
- name: check latest chrysalis version
latest_github_tag:
repo: https://github.com/keyboardio/Chrysalis
register: chrysalis
- name: download & install chrysalis
get_url:
url:
"https://github.com/keyboardio/Chrysalis/\
releases/download/v{{ chrysalis.latest_version }}/\
Chrysalis-{{ chrysalis.latest_version }}.AppImage"
dest: "{{ ansible_env.HOME }}/bin/chrysalis"
mode: 0755
- name: Remove unneeded snaps
snap:
# this eats over 0.5 GB of RAM, even when inactive, and from what I see
# is just a frontend for installing apps. Removing it apparently does
# not break automatic updates.
name: snap-store
state: absent
become: yes
- name: Install extra GUI snap packages
snap:
name:
- spotify
- slack # there's also a .deb file for download, but this is better
become: yes
# # https://github.com/odeke-em/drive/
# # alternative project that may be worth checking out:
# # https://github.com/gdrive-org/gdrive
# - name: add Google Drive cli PPA
# apt_repository:
# repo: ppa:twodopeshaggy/drive
# codename: "{{ dist_override | default(omit) }}"
# filename: google-drive
- name: Install extra GUI apt packages
apt:
name:
# - drive # CLI for google drive
- gimp
- gitk
- gparted
- guake
- imagemagick
- indicator-multiload
- kate
- keepass2
- kompare
- okular
- stopwatch # time tracking
- xdotool # library for auto-type in keepass
state: latest
install_recommends: no
update_cache: yes
cache_valid_time: 3600
become: yes
- name: Check Beyond Compare website for version info
shell: >
wget https://www.scootersoftware.com/download.php -O-
register: bcompare
failed_when: bcompare.rc > 0
changed_when: False
- set_fact:
bcompare_deb: "{{ bcompare.stdout | regex_search('bcompare-.*_amd64.deb') }}"
- name: download Beyond Compare .deb file
get_url:
url: http://www.scootersoftware.com/{{ bcompare_deb }}
dest: /tmp/{{ bcompare_deb }}
- name: install Beyond Compare
apt: deb=/tmp/{{ bcompare_deb }}
become: yes