Repository navigation
Expand file tree
/
Copy pathmain.yml
More file actions
80 lines (65 loc) · 1.82 KB
/
Copy pathmain.yml
File metadata and controls
80 lines (65 loc) · 1.82 KB
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
---
- name: gather facts
setup:
- name: create custom jenkins workspace
ansible.builtin.file:
group: "{{ server_user }}"
owner: "{{ server_user }}"
path: "/w/bnch-comp"
state: directory
- name: Install packages
package:
name: "{{ package }}"
state: present
loop_control:
loop_var: package
with_items: "{{ packages }}"
- name: Download h2load git repo
git:
repo: 'https://github.com/nghttp2/nghttp2.git'
dest: "/home/{{ server_user }}/nghttp2"
force: yes
- name: Setup and compile h2load
shell: "autoreconf -i && automake && autoconf && ./configure --enable-app && make -j4"
args:
chdir: "/home/{{ server_user }}/nghttp2"
environment:
CC: gcc-14
CXX: g++-14
- name: Download wrk git repo
git:
repo: https://github.com/wg/wrk.git
dest: "/home/{{ server_user }}/wrk"
force: yes
- name: Setup and compile wrk
shell: "make"
args:
chdir: "/home/{{ server_user }}/wrk"
- name: Install Rscript repo | {{ os }}
when: os|startswith("ubuntu")
shell: echo "deb https://cran.datenrettung360.de/bin/linux/ubuntu {{ ansible_distribution_release }}-cran40/" > /etc/apt/sources.list.d/r.list
- name: Add R key
apt_key:
keyserver: keyserver.ubuntu.com
id: E084DAB9
- name: Add Rscript key
apt_key:
keyserver: keyserver.ubuntu.com
id: 51716619E084DAB9
- name: Update keys
shell: "apt-key update"
- name: Update packages
include_role:
name: package-upgrade
- name: Install Rscript packages
package:
name: "{{ package }}"
state: present
loop_control:
loop_var: package
with_items:
- r-base
- name: Install ggplot2
shell: echo 'install.packages("ggplot2", repo="http://cran.us.r-project.org")' | R --no-save
- name: Install plyr
shell: echo 'install.packages("plyr", repo="http://cran.us.r-project.org")' | R --no-save