-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
227 lines (202 loc) · 8.19 KB
/
local.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
---
# tasks to complete before running roles
- hosts: localhost
become: true
tasks:
# - name: Download and Install Nix package manager
# command: "curl -L https://nixos.org/nix/install | sh -s -- --daemon"
- name: system setup | utility packages | install packages
apt:
update_cache: yes
name:
- nala # apt frontend cli tool
- htop
- btop
- tmux
- vim-nox
- bat # cat clone with wings
- fzf # fuzzy search finding. Combine with other tools "--preview 'bat'"
- xclip # cli-tool for clipboard reading and writing
- speedtest-cli
- cpupower-gui
- blueman # Bluetooth manager for IO/API/and more.
- ocrmypdf # OCRPDF conversion cli-tool built upon Tesseract OCR engine
- wget
- rsync
- rclone # cloud syncing with a host of cloud-apis
- pigz # Compression tool with parallellization
- p7zip-full # p7zip includes 7z compression cli tool
- net-tools
- nfs-common # NFS client and server tools
- smartmontools
- gparted # Disk partitioning tool.
- imagemagick # Image manipulation tool
- corectrl # System control tool. Application wise system performance profiles.
- timeshift # Backup tool
- flameshot # Screenshot tool
- evolution # Evolution mail client
- evolution-ews # Evolution mail client plugin for ms-exchange mail protocol https://www.uio.no/tjenester/it/e-post-kalender/evolution/hjelp/oppsett/sette-opp-evolution-med-ews.html
- gnome-tweaks # GUI tool for customizing gnome desktop environment
- pandoc # Tool for conversion between manuscript-document formats
- usbmuxd # libimobiledevice6 ubuntu install
- libimobiledevice6 # libimobiledevice6 ubuntu install
- libimobiledevice-utils # libimobiledevice6 ubuntu install
- pspp # GNU SPSS alternative
- spice-client-gtk # SPICE VNC client
state: latest
- name: Add PPA for gnome-shell-extension-cpupower
ansible.builtin.apt_repository:
repo: 'ppa:fin1ger/cpupower'
state: present
update_cache: true
- name: Install gnome-shell-extension-cpupower
apt:
name: gnome-shell-extension-cpupower
state: present
- name: Install corectrl | 1) Create the /etc/apt/preferences.d/corectrl file
become: yes
copy:
content: |
# Never prefer packages from the ernstp repository
Package: *
Pin: release o=LP-PPA-ernstp-mesarc
Pin-Priority: 1
# Allow upgrading only corectrl from LP-PPA-ernstp-mesarc
Package: corectrl
Pin: release o=LP-PPA-ernstp-mesarc
Pin-Priority: 500
dest: /etc/apt/preferences.d/corectrl
mode: '0644'
tags:
- corectrl_preferences
- name: Install corectrl | 2) Add Mesarc PPA repository
become: yes
apt_repository:
repo: ppa:ernstp/mesarc
state: present
- name: Install corectrl | 3) apt install
apt:
update_cache: yes
name: corectrl
- name: Install Jottacloud CLI | 1) Obtain repository key
ansible.builtin.get_url:
url: https://repo.jotta.us/public.asc
dest: /usr/share/keyrings/jotta.gpg
- name: Install Jottacloud CLI | 2) Save repo information to apt sources
ansible.builtin.apt_repository:
repo: 'deb [signed-by=/usr/share/keyrings/jotta.gpg] https://repo.jotta.us/debian debian main'
state: present
update_cache: true
- name: Install Jottacloud CLI | 3) Update cache and install from repo
apt:
update_cache: yes
name: jotta-cli
- name: Install Jottacloud CLI | 4) Run the run_jottad command as user <adrian> to activate jotta-cli for this user
command: run_jottad
become: yes
become_user: adrian
- name: 1password deb package install | utility packages
apt:
deb: https://downloads.1password.com/linux/debian/amd64/stable/1password-latest.deb
state: present
- name: software tools | utility packages
apt:
update_cache: yes
name:
- vlc
- gnucash
- anki
state: latest
- name: system setup | development packages | install packages
apt:
update_cache: yes
name:
- fabric
- perl
- git
- tig
- python3.10
- python3.10-dev
- python3.10-venv
# not available somehow? - python3.10-virtualenv #requirement for ansible.builtin.pip
- libcurl4-openssl-dev #requirement for RCurl package
- libgsl-dev # GNU scientific library binary
- default-jre # Java - Ubuntu build of current OpenJDK JRE in Long Term Support (LTS). Remember to add JAVA_HOME env variable.
# error? - openjdk-19-jdk, openjdk-19-jre # May be relevant to update version later in this playbook.
- podman # container engine
- cmake
state: latest
- name: system setup | neuroimaging packages | install apt packages
apt:
update_cache: yes
name:
- connectome-workbench
state: present
- name: Install R | Set host facts for R
ansible.builtin.set_fact:
R_VERSION: '4.2.2'
CPU_TYPE: 'amd64'
UBUNTU_VERSION_NAME: 'jammy'
UBUNTU_VERSION_NUMBER: '2204'
- name: Install R | Install deb package for ubuntu 2204 amd64
apt:
deb: 'https://cdn.rstudio.com/r/ubuntu-{{ UBUNTU_VERSION_NUMBER }}/pkgs/r-{{ R_VERSION }}_1_{{ CPU_TYPE }}.deb'
state: present
- name: Install R | Create symlink for R
command: 'ln -s /opt/R/{{ R_VERSION }}/bin/R /usr/local/bin/R'
args:
creates: '/usr/local/bin/R'
- name: Install R | Create symlink for Rscript
command: 'ln -s /opt/R/{{ R_VERSION }}/bin/Rscript /usr/local/bin/Rscript'
args:
creates: '/usr/local/bin/Rscript'
- name: Install Rstudio | Set host facts for Rstudio
ansible.builtin.set_fact:
RSTUDIO_VERSION: '2023.12.1-402'
#RSTUDIO_DOWNLOAD_URL: ''
- name: Install RStudio | Install deb package
apt:
deb: 'https://download1.rstudio.org/electron/{{ UBUNTU_VERSION_NAME }}/{{ CPU_TYPE }}/rstudio-{{ RSTUDIO_VERSION }}-{{ CPU_TYPE }}.deb'
state: present
- name: Install collection community.general
community.general.ansible_galaxy_install:
type: collection
name: community.general
- name: Add flathub repo
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: 'https://dl.flathub.org/repo/flathub.flatpakrepo'
method: system
enabled: true
- name: Install flatpaks
community.general.flatpak:
method: system
name:
- com.bitwarden.desktop
- com.github.tchx84.Flatseal
- md.obsidian.Obsidian
- org.zotero.Zotero
- io.neovim.nvim
- com.github.ahrm.sioyek
- com.calibre_ebook.calibre
- org.signal.Signal
- network.loki.Session
- com.slack.Slack
- com.discordapp.Discord
- com.github.dynobo.normcap
- com.vscodium.codium
- com.anydesk.Anydesk
- com.github.IsmaelMartinez.teams_for_linux
- org.gnome.Extensions
- com.mattjakeman.ExtensionManager
- app.drey.Dialect # translation app for GNOME
- com.belmoussaoui.Decoder # qr-code scanner and generation
- com.mastermindzh.tidal-hifi
- io.podman_desktop.PodmanDesktop
- org.jaspstats.JASP # JASP gui-statistics application
state: present
# roles:
# - { role: uelei.python-setup-pyenv-pipx-poetry }
# - { role: viasite-ansible.zsh }
# - { role: geerlingguy.docker }