blob: 10607fd92c1e5bbded45927b1e24c3ed47ecc967 (
plain) (
blame)
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
|
---
- name: Basic Setup
hosts: ch-equinox-ws
roles:
- role: apt-repo/base
- role: core/base
- role: core/sshd/base
- role: core/zsh
- role: core/cpu-microcode
- role: network/wakeonlan
- name: Payload Setup
hosts: ch-equinox-ws
roles:
- role: apt-repo/backports
- role: apt-repo/spreadspace
- role: apt-repo/ansible
- role: apt-repo/tor-project
- role: apt-repo/kubernetes
- role: apt-repo/riot
- role: apt-repo/brave
- role: apt-repo/freecad
- role: apt-repo/kicad6
- role: ws/base
- role: core/admin-users
post_tasks:
- name: disable caps-lock
lineinfile:
path: /etc/default/keyboard
regexp: '#?\s*XKBOPTIONS='
line: 'XKBOPTIONS="caps:none"'
- name: mount fileserver volumes
mount:
src: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus']) | ansible.utils.ipaddr('address') }}:/"
path: /srv/files
fstype: nfs4
opts: nodev,x-systemd.automount,nofail
state: mounted
- name: create pulse daemon config directory
file:
path: /etc/pulse/daemon.conf.d
state: directory
- name: force pulseaudio sample rates to 48kHz (workadournd for Motu M4)
copy:
content: |
resample-method = speex-float-10
avoid-resampling = false
default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 48000
dest: /etc/pulse/daemon.conf.d/motu-m4.conf
- name: disable USB Powermanagement for Motu M4
copy:
content: |
## workaround for spurious audio issues with Motu M4
ATTRS{idVendor}=="07fd", ATTRS{idProduct}=="0008", ATTR{power/control}="on", ATTR{power/persist}="0"
dest: /etc/udev/rules.d/90-motu-m4-power.rules
- name: mask virtualbox web service unit
systemd:
name: vboxweb.service
masked: true
state: stopped
- name: add flathub to systemd-wide flatpak remotes
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present
- name: install deps for c3voc/cm repo
pip:
name:
- "bundlewrap>=4.13.6"
- "bundlewrap-keepass"
- name: install gotify-desktop
become: yes
become_method: su
become_user: "equinox"
block:
- name: get list of installed cargo crates
check_mode: no
command: "cargo install --list"
changed_when: false
register: installed_cargo_crates
- name: build
loop:
- name: gotify-desktop
version: 1.2.0
url: https://github.com/desbma/gotify-desktop.git
loop_control:
label: "{{ item.name }} ({{ item.version }})"
when: (item.name+' v'+ item.version) not in installed_cargo_crates.stdout
command: "cargo install --git '{{ item.url }}' --tag '{{ item.version }}'"
|