-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaybook.yaml
720 lines (670 loc) · 22.5 KB
/
playbook.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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
---
# List of plays
-
# Hosts: where our play will run and options it will run with
hosts: localhost
connection: local
gather_facts: yes
tags: always
# Vars: variables that will apply to the play, on all targets
# Tasks: the list of tasks that will be executed within
# the play, this section can also be used for
# pre and post tasks
tasks:
# from https://superuser.com/questions/1395954/ansible-playbook-to-determine-os-release
- name: System details
debug: msg="{{ item }}"
with_items:
- "{{ ansible_distribution }}"
- "{{ ansible_distribution_version }}"
- "{{ ansible_distribution_major_version }}"
- name: Verify install_files is present
debug: msg="install_files/_README = {{ lookup('file', '/home/kasm-default-profile/install_files/_README') }}"
# Detect if we are running on a WSL2 environment
- name: Set wsl2_environment fact default to false
set_fact:
wsl2_environment: false
- name: Set wsl2_environment fact True
set_fact:
wsl2_environment: true
when: ansible_kernel is search("microsoft-standard-WSL2")
# fix for .gnupg/ permissions when building custom images
- name: Add fix for .gnupg/ permissions
lineinfile:
path: "/etc/bash.bashrc"
line: "chmod 700 ~/.gnupg/"
- name: Add custom prompt to /etc/skel/.profile
lineinfile:
path: "/etc/skel/.profile"
line: 'export PS1="\[\033[00;32m\][\w]\$\[\033[00m\] "'
# Handlers: the list of handlers that are executed as a notify
# key from a task
# Roles: list of roles to be imported into the play
roles:
- role: irixjp.role_example_hello
# Add additional plays here (remember the list entry -)
# Be sure to use the same hosts and connection entries above
# addtional plays
-
# Install build-essential
hosts: localhost
connection: local
tags:
- install_generator_plantuml
- install_generator_asciidoctor
- install_doctools
tasks:
- name: Install build-essential
apt:
name: build-essential
update_cache: yes
-
# Install NodeJS Tools
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_node
- install_doctools
vars:
node_version: "20.15.1"
v_node_version: "v{{ node_version }}"
npm_version: "10.7.0"
npx_version: "10.7.0"
yo_version: "5.0.0"
generator_code_version: "1.11.1"
oclif_version: "4.14.6"
typescript_version: "5.5.3"
tasks: # Test Node JS Tools versions
- name: Get node version
shell: node --version
register: installed_node_version
- name: Get npm version
shell: npm --version
register: installed_npm_version
- name: Get npx installed version
shell: npx --version
register: installed_npx_version
- name: Get oclif version
shell: oclif --version 2>/dev/null | sed 's/\ /\n/g' | grep oclif | sed 's/\///g' | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_oclif_version
- name: Get TypeScript Compiler version
shell: tsc --version | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_tsc_version
- name: Display node tool versions
debug:
msg: "Node = {{ installed_node_version.stdout }} | npm = {{ installed_npm_version.stdout }} | npx = {{ installed_npx_version.stdout }}"
- name: Display TypeScript Compiler version
debug:
msg: "tsc = {{ installed_tsc_version.stdout }}"
- name: Test node version
fail:
msg: "NodeJS Version Error: Expected {{ v_node_version }} | Found {{ installed_node_version.stdout }}"
when: installed_node_version.stdout != v_node_version
- name: Test npm version
fail:
msg: "NPM Version Error: Expected {{ npm_version }} | Found {{ installed_npm_version.stdout }}"
when: installed_npm_version.stdout != npm_version
- name: Test npx version
fail:
msg: "NPX Version Error: Expected {{ npx_version }} | Found {{ installed_npx_version.stdout }}"
when: installed_npx_version.stdout != npx_version
- name: Test oclif version
fail:
msg: "oclif Version Error: Expected {{ oclif_version }} | Found {{ installed_oclif_version.stdout }}"
when: installed_oclif_version.stdout != oclif_version
- name: Test TypeScript Compiler version
fail:
msg: "TypeScript Compiler Version Error: Expected {{ typescript_version }} | Found {{ installed_tsc_version.stdout }}"
when: installed_tsc_version.stdout != typescript_version
roles:
- role: grzegorznowak.nvm_node
nvm_install_script_version: "0.39.3"
nvm_node_version: "{{ node_version }}"
nvm_install_globally:
- name: yo
version: "{{ yo_version }}"
- name: generator-code
version: "{{ generator_code_version }}"
- name: oclif
version: "{{ oclif_version }}"
- name: typescript
version: "{{ typescript_version }}"
-
# Install Yarn
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_yarn
vars:
yarn_version: "4.3.1"
tasks:
- name: Install Yarn
shell: "corepack enable && corepack prepare yarn@{{ yarn_version }} --activate"
- name: Get yarn version
shell: yarn --version
register: installed_yarn_version
- name: Display yarn versions
debug:
msg: "yarn = {{ installed_yarn_version.stdout }}"
- name: Test yarn version
fail:
msg: "Yarn Version Error: Expected {{ yarn_version }} | Found {{ installed_yarn_version.stdout }}"
when: installed_yarn_version.stdout != yarn_version
-
# install PlantUML
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_generator_plantuml
- install_doctools
vars:
jdk_version: 2:1.11-72
graphviz_version_expected: "dot - graphviz version 2.50.0 (20211204.2007)"
tasks:
- name: Install JDK
apt:
name: "default-jdk={{ jdk_version }}"
update_cache: yes
- name: Get JDK Version
shell: java --version | grep -m 1 -i openjdk
register: installed_jdk_version
- name: Install pre-reqs to build graphviz
apt:
name: libcairo2-dev, libexpat-dev, libfreetype-dev, libgd-dev, fontconfig-config, libglib2.0-dev, libgtk2.0-dev, libpng-dev, zlib1g-dev, libsdl-pango-dev, libgts-bin, libgtk-3-dev, libgtkglext1-dev, glade, freeglut3-dev, autoconf, automake, bison, flex, ghostscript, libtool, pkg-config, swig
update_cache: yes
- name: Expand source files archive
unarchive:
src: /home/kasm-default-profile/install_files/graphviz-2.50.0.tar.gz
dest: /home/kasm-default-profile/install_files/
remote_src: yes
creates: /home/kasm-default-profile/install_files/graphviz-2.50.0/README
- name: Build graphviz
shell:
cmd: ./configure --enable-perl=no && make > /tmp/graphviz_build_output.txt 2>&1 && make install
chdir: /home/kasm-default-profile/install_files/graphviz-2.50.0/
executable: /bin/bash
- name: Get graphviz version
shell: dot -V
register: installed_graphviz_version
- name: install plantuml
copy:
src: /home/kasm-default-profile/install_files/plantuml.jar
dest: /usr/local/bin/plantuml.jar
remote_src: yes
- name: Display JDK and GraphViz versions
debug:
msg: "JDK = {{ installed_jdk_version.stdout }} | graphviz = {{ installed_graphviz_version.stderr }}"
- name: Test Graphviz version
fail:
msg: "Graphviz Version Error: Expected {{ graphviz_version_expected }} | Found {{ installed_graphviz_version.stderr }}"
when: installed_graphviz_version.stderr != graphviz_version_expected
-
# install keychain, git, and @capsulecorplab .vimrc and .gitconfig
hosts: localhost
connection: local
gather_facts: yes
tags: install_utilities
vars:
git_version: "2.46.0"
git_version_to_install: "1:{{ git_version }}-0ppa1~ubuntu20.04.1"
keychain_version: "2.8.5"
keychain_version_to_install: "{{ keychain_version }}-1"
keychain_version_expected: "{{ keychain_version }}.."
gradle_version: "8.7"
tasks:
- name: Add git PPA
shell: add-apt-repository ppa:git-core/ppa
- name: Install git
apt:
name: "git={{ git_version_to_install }}"
- name: Install Git Bash Completion
apt:
name: bash-completion
update_cache: yes
- name: Install Keychain
apt:
name: "keychain={{ keychain_version_to_install }}"
update_cache: yes
- name: Get git version
shell: git version | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_git_version
- name: Get keychain version
shell:
cmd: keychain -V 2> >(grep -i keychain) 2> >(sed 's/[[:alpha:]|(|[:space:]]//g') | fgrep '*' | sed 's/[*~://]//g'
executable: /bin/bash
register: installed_keychain_version
- name: Display git and keychain versions
debug:
msg: "git = {{ installed_git_version.stdout }} | keychain = {{ installed_keychain_version.stdout }}"
- name: Test git version
fail:
msg: "Git Version Error: Expected {{ git_version }} | Found {{ installed_git_version.stdout }}"
when: installed_git_version.stdout != git_version
- name: Test keychain version
fail:
msg: "Keychain Version Error: Expected {{ keychain_version_expected }} | Found {{ installed_keychain_version.stdout }}"
when: installed_keychain_version.stdout != keychain_version_expected
- name: auto-launch keychain in shell, if ssh keys exists
shell: echo 'if [ -r ~/.ssh/id_ed25519 ]; then\n eval `keychain --eval id_ed25519`\nfi' >> /home/kasm-default-profile/.bashrc
- name: Install @capsulecorplab .vimrc
copy:
src: /home/kasm-default-profile/install_files/.vimrc
dest: /home/kasm-default-profile/.vimrc
remote_src: yes
- name: Install @capsulecorplab .gitconfig
copy:
src: /home/kasm-default-profile/install_files/.gitconfig
dest: /home/kasm-default-profile/.gitconfig
remote_src: yes
- name: Join gradle v{{ gradle_version }} zip file from split files
shell: cat /home/kasm-default-profile/install_files/gradle-{{ gradle_version }}-bin.zip.parta* > /home/kasm-default-profile/install_files/gradle-{{ gradle_version }}-bin.zip
- name: Create gradle directory
file:
path: /opt/gradle
state: directory
mode: '0755'
- name: Unzip gradle binary
unarchive:
src: /home/kasm-default-profile/install_files/gradle-{{ gradle_version }}-bin.zip
dest: /opt/gradle/
remote_src: yes
creates: /opt/gradle/gradle-{{ gradle_version }}/LICENSE
- name: Create symlink to gradle in /usr/local/bin/
file:
src: /opt/gradle/gradle-{{ gradle_version }}/bin/gradle
dest: /usr/local/bin/gradle
owner: root
group: root
state: link
- name: Get gradle version
shell: gradle --version | grep -v Welcome | grep Gradle | awk '{ print $2 }'
register: installed_gradle_version
- name: Display gradle versions
debug:
msg: "gradle = {{ installed_gradle_version.stdout }}"
- name: Test gradle version
fail:
msg: "Gradle Version Error: Expected {{ gradle_version }} | Found {{ installed_gradle_version.stdout }}"
when: installed_gradle_version.stdout != gradle_version
-
# install Python packages with pip
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_python_based_tools
- install_doctools
tasks:
- name: Update OS to point python to python3
apt:
name: python-is-python3
update_cache: yes
- name: Install pip for python3 with Apt
apt:
name: python3-pip
update_cache: yes
- name: Install python packages with pip
pip:
name:
- jupyter_server==1.23.6
- jupyterlab
- notebook
- voila
- pint
- jinja2==3.1.2
- linkml==1.6.0
- black[jupyter]
- yamllint==1.31.0
- name: install & configure poetry
shell: curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 -
- name: Create symlink to Poetry in /usr/local/bin/
file:
src: /opt/poetry/bin/poetry
dest: /usr/local/bin/poetry
owner: root
group: root
state: link
# roles:
# - role: geerlingguy.pip
-
# install Pandoc & TexLive
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_generator_pandoc
- install_doctools
vars:
pandoc_version: "2.18"
texlive_version: "2019.20200218-1"
texlive_version_expected: "pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)"
tasks:
- name: install TeX Live
apt:
name: "texlive-full={{ texlive_version }}"
update_cache: yes
# https://mikefarah.gitbook.io/yq/
- name: Install yq
copy:
src: /home/kasm-default-profile/install_files/yq
dest: /usr/bin/yq
remote_src: yes
owner: root
group: root
mode: '0755'
- name: Install pandoc-citeproc
apt:
name: pandoc-citeproc
update_cache: yes
- name: Get pandoc version
shell: pandoc --version | grep -m 1 -i pandoc | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_pandoc_version
- name: Get TeX Live version
shell: latex --version | grep -i Tex -m 1
register: installed_texlive_version
- name: Display pandoc and texlive versions
debug:
msg: "pandoc = {{ installed_pandoc_version.stdout }} | texlive = {{ installed_texlive_version.stdout }}"
- name: Test pandoc version
fail:
msg: "Pandoc Version Error: Expected {{ pandoc_version }} | Found {{ installed_pandoc_version.stdout }}"
when: installed_pandoc_version.stdout != pandoc_version
- name: Test texlive version
fail:
msg: "TeX Live Version Error: Expected {{ texlive_version_expected }} | Found {{ installed_texlive_version.stdout }}"
when: installed_texlive_version.stdout != texlive_version_expected
roles:
- role: andrewrothstein.pandoc
pandoc_ver: "{{ pandoc_version }}"
-
# install ASCII Doctor
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_generator_asciidoctor
- install_doctools
vars:
asciidoctor_version: 2.0.18
asciidoctor_version_expected: "{{ asciidoctor_version }}[.]"
public_suffix_version: 5.1.1
tasks:
- name: Install Ruby
apt:
name: ruby-full
update_cache: yes
- name: Run gem install for asciidoctor
shell:
cmd: "gem install asciidoctor -v {{ asciidoctor_version }}"
- name: Install hexapdf dependencies
apt:
name: libssl-dev
update_cache: yes
- name: gem install public_suffix -v {{ public_suffix_version }}
shell:
cmd: "gem install public_suffix -v {{ public_suffix_version }}"
- name: Install PlantUML and PDF support
shell:
cmd: gem install asciidoctor-diagram rghost hexapdf text-hyphen rouge pygments.rb coderay asciidoctor-pdf
- name: Get asciidoctor version
shell: asciidoctor --version | grep Asciidoctor | sed 's/[[:alpha:]|(|[:space:]]//g' | sed 's/[*~://]//g'
register: installed_asciidoctor_version
- name: Display asciidoctor version
debug:
msg: "ASCII Doctor = {{ installed_asciidoctor_version.stdout }}"
- name: Test asciidoctor version
fail:
msg: "ASCII Doctor Version Error: Expected {{ asciidoctor_version_expected }} | Found {{ installed_asciidoctor_version.stdout }}"
when: installed_asciidoctor_version.stdout != asciidoctor_version_expected
-
# install sudo for the vs-code role below
hosts: localhost
connection: local
tags:
- install_vscode
- install_knowledge_tools
tasks:
- name: Install Sudo
apt:
name: sudo
update_cache: yes
- name: Preserve DONT_PROMPT_WSL_INSTALL in sudoers
lineinfile:
path: "/etc/sudoers"
line: "Defaults env_keep += \"DONT_PROMPT_WSL_INSTALL\""
when: wsl2_environment
-
# add dev user to give vs code somewhere to install extensions
hosts: localhost
connection: local
tags:
- install_vscode
- install_knowledge_tools
tasks:
- name: Add WSL2 required variables to the environment
lineinfile:
path: "/etc/bash.bashrc"
line: "export DONT_PROMPT_WSL_INSTALL=1"
when: wsl2_environment
- name: Add dev user
user:
name: dev
uid: 1001
-
# install the remainder of the tools
hosts: localhost
connection: local
tags:
- install_vscode
- install_knowledge_tools
environment:
DONT_PROMPT_WSL_INSTALL: 1
tasks:
- name: Create Spell Right Dictionaries Folder
file:
path: /home/dev/.config/Code/Dictionaries
state: directory
mode: '0755'
- name: Link system dictionaries to Spell Right
shell:
cmd: ln -s /usr/share/hunspell/* /home/dev/.config/Code/Dictionaries
roles:
- role: gantsign.visual-studio-code
visual_studio_code_version: "1.91.1*"
users:
- username: "dev"
visual_studio_code_extensions:
- waderyan.nodejs-extension-pack
- redhat.vscode-yaml
- jebbs.plantuml
- asciidoctor.asciidoctor-vscode
- dendron.dendron
- ginfuru.better-nunjucks
- CurlyBrackets.markdown-word-count
- ban.spellright
- ms-python.python
- yzhang.markdown-all-in-one
- ms-python.black-formatter
- vscjava.vscode-gradle
visual_studio_code_settings_overwrite: yes
visual_studio_code_settings: {
"extensions.ignoreRecommendations": true,
"update.mode": "none",
"extensions.autoUpdate": false,
"extensions.autoCheckUpdates": false,
"plantuml.exportFormat": "png",
"plantuml.jar": "/usr/local/bin/plantuml.jar",
"plantuml.render": "Local",
"terminal.integrated.profiles.linux": {
"bash (login)": {
"path": "bash",
"args": ["-l"]
}
},
"terminal.integrated.defaultProfile.linux": "bash (login)",
"markdown-word-count.selectionCount": true,
"spellright.language": [
"en_US"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
],
"python.formatting.provider": "none",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
}
}
-
# Copy VS Code changes to kasm-default-profile and lean up (remove) dev user now that vs code is installed
hosts: localhost
connection: local
tags:
- install_vscode
- install_knowledge_tools
tasks:
- name: Copy VS Code changes to kasm-default-profile
shell:
cmd: cp -r /home/dev/.config/Code/ /home/kasm-default-profile/.config/Code/ && cp -r /home/dev/.vscode/ /home/kasm-default-profile/.vscode/
- name: Remove dev user
user:
name: dev
state: absent
remove: yes
-
# Install knowledge capture tools
hosts: localhost
connection: local
tags: install_knowledge_tools
tasks:
- name: Join jabref debian package from split files
shell: cat /home/kasm-default-profile/install_files/jabref_5.9_amd64.deb.part* > /home/kasm-default-profile/install_files/jabref_5.9_amd64.deb
- name: install jabref from deb
apt:
deb: /home/kasm-default-profile/install_files/jabref_5.9_amd64.deb
update_cache: yes
- name: install xclip (used for copy/pasting images in dendron)
apt:
name: xclip
update_cache: yes
-
# Install Pharo
hosts: localhost
connection: local
tags: install_pharo
tasks:
- name: Unzip Pharo
unarchive:
src: /home/kasm-default-profile/install_files/PharoLauncher-linux-2.3-x64.zip
dest: /home/kasm-default-profile/
remote_src: yes
#-
# # Install OML Tools
# hosts: localhost
# connection: local
# tags: install_oml
#
# tasks:
# - name: Unzip Rosetta RCP
# unarchive:
# src: /home/kasm-default-profile/install_files/rosetta-1.0.7-linux.gtk.x86_64.zip
# dest: /usr/local/bin
# remote_src: yes
# - name: symlink Rosetta executable into /usr/local/bin/
# file:
# src: /usr/local/bin/Rosetta/Rosetta
# dest: /usr/local/bin/rosetta
# owner: root
# group: root
# state: link
# - name: Install R helper packages
# apt:
# name: software-properties-common, dirmngr
# update_cache: yes
# install_recommends: no
# - name: Install OML tutorials R dependencies
# apt:
# name: libxml2-dev, libcurl4-openssl-dev, libssl-dev, gfortran, libblas-dev, liblapack-dev
# update_cache: yes
# - name: Add R repos signing key
# shell:
# cmd: wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# - name: Add the R 4.0 repo from CRAN
# shell:
# cmd: add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
# - name: Install R
# apt:
# name: r-base
# update_cache: yes
# install_recommends: no
# - name: Install R Studio
# apt:
# deb: /home/kasm-default-profile/install_files/rstudio-2022.02.1-461-amd64.deb
# update_cache: yes
# - name: Add Stardog aptkey
# shell:
# cmd: curl http://packages.stardog.com/stardog.gpg.pub | apt-key add
# - name: Add stardog repo
# shell:
# cmd: echo "deb http://packages.stardog.com/deb/ stable main" >> /etc/apt/sources.list
# - name: Install stardog
# apt:
# name: stardog
# update_cache: yes
# install_recommends: yes
# - name: install startstardogserver.sh
# copy:
# src: /home/kasm-default-profile/install_files/startstardogserver.sh
# dest: /opt/stardog/startstardogserver.sh
# owner: stardog
# group: stardog
# mode: '0755'
# remote_src: yes
# - name: add startstardogserver.sh to PATH
# lineinfile:
# path: "/etc/skel/.profile"
# line: 'PATH=$PATH:/opt/stardog'
-
# install readers
hosts: localhost
connection: local
tags:
- install_readers
- install_firefox
tasks:
- name: install Evince
apt:
name: evince
update_cache: yes
# install firefox
vars:
firefox_profiles:
default:
extensions:
- ublock-origin
preferences:
network.cookie.cookieBehavior: 1
privacy.donottrackheader.enabled: true
datareporting.healthreport.uploadEnabled: false
secondprofile:
extensions:
- adblock-plus
preferences:
privacy.donottrackheader.enabled: false
privacy.trackingprotection.enabled: false
signon.rememberSignons: false
datareporting.healthreport.uploadEnabled: false
pre_tasks:
- name: Update apt packages
apt:
update_cache: yes
roles:
- role: webarchitect609.google_chrome
- role: staticdev.firefox
# Three dots indicate the end of a YAML document
...