-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup-workstation-dev.yaml
178 lines (157 loc) · 4.36 KB
/
setup-workstation-dev.yaml
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
---
- name: Personal config and settings
hosts: "workstations"
connection: local
become: false
tasks:
- name: create temporary directory
ansible.builtin.tempfile:
state: directory
register: tempfolder
tags:
- zsh
- distrobox
- helm
- name: Install cli apps
ansible.builtin.apt:
name:
- exa
- fzf
- screen
- zsh
- zsh-autosuggestions
- zsh-syntax-highlighting
state: present
become: yes
tags:
- zsh
- name: test if oh-my-zsh has been installed
ansible.builtin.stat:
path: ~/.oh-my-zsh/
register: _omz_path
tags:
- zsh
- name: get oh-my-zsh script
ansible.builtin.uri:
url: https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
dest: "{{ tempfolder.path }}/install.sh"
mode: 0755
when: not _omz_path.stat.exists
tags:
- zsh
- name: install oh-my-zsh
ansible.builtin.command:
cmd: "{{ tempfolder.path }}/install.sh --unattended"
when: not _omz_path.stat.exists
tags:
- zsh
- name: set default shell
ansible.builtin.user:
name: "{{ ansible_user }}"
shell: /usr/bin/zsh
become: yes
tags:
- zsh
- name: Extract helm archive
ansible.builtin.unarchive:
src: https://get.helm.sh/helm-v3.12.1-linux-amd64.tar.gz
dest: "{{ tempfolder.path }}/"
remote_src: yes
tags:
- helm
- name: install command
ansible.builtin.copy:
src: "{{ tempfolder.path }}/linux-amd64/helm"
dest: "$HOME/.local/bin/helm"
mode: "0755"
tags:
- helm
- name: download distrobox install script
ansible.builtin.uri:
url: https://raw.githubusercontent.com/89luca89/distrobox/main/install
dest: "{{ tempfolder.path }}/distrobox-install"
mode: 0755
tags:
- distrobox
- name: install distrobox
ansible.builtin.command:
cmd: "{{ tempfolder.path }}/distrobox-install --prefix ~/.local"
tags:
- distrobox
- name: create directory for apps
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.gitapps"
state: directory
mode: '0755'
tags:
- focus-follows-mouse
- name: clone kwin window scripts
ansible.builtin.git:
repo: https://github.com/nclarius/KWin-window-positioning-scripts.git
dest: "{{ ansible_env.HOME }}/.gitapps/KWin-window-positioning-scripts"
tags:
- focus-follows-mouse
- name: install kwin window scripts
ansible.builtin.command:
cmd: ./install.sh
args:
chdir: "{{ ansible_env.HOME }}/.gitapps/KWin-window-positioning-scripts/always-open-on-active-screen/"
tags:
- focus-follows-mouse
- name: install goodix fingerprint drivers
ansible.builtin.apt:
deb: http://dell.archive.canonical.com/updates/pool/public/libf/libfprint-2-tod1-goodix/libfprint-2-tod1-goodix_0.0.6-0ubuntu1~somerville1_amd64.deb
become: yes
tags:
- dell
- name: install dell finger print drivers
ansible.builtin.apt:
name:
- libfprint-2-tod1
become: yes
tags:
- dell
- name: install finger print drivers
ansible.builtin.apt:
name:
- fprintd
- libfprint-2-2
- libpam-fprintd
become: yes
tags:
- fprintd
- name: configure PAM to use the figerprint reader
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "/etc/pam.d/{{ item }}"
owner: root
group: root
mode: 0644
loop:
- "kde"
- "sddm"
become: yes
tags:
- fprintd
- name: Install Synaptics keyring
ansible.builtin.apt:
deb: "https://www.synaptics.com/sites/default/files/Ubuntu/pool/stable/main/all/synaptics-repository-keyring.deb"
state: present
become: yes
tags:
- displaylink
- name: install displaylink drivers
ansible.builtin.apt:
name:
- evdi
- displaylink-driver
update_cache: true
become: yes
tags:
- displaylink
# - name: reboot
# ansible.builtin.command:
# cmd: reboot
# tags:
# - displaylink
...