-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yaml
70 lines (68 loc) · 2.65 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
- hosts: all
remote_user: jcavallo
become: yes
tasks:
- name: Download Go Source
get_url:
url: https://go.dev/dl/go1.17.7.linux-amd64.tar.gz
dest: /users/jcavallo/go1.17.7.linux-amd64.tar.gz
mode: '0440'
- name: Create directory for Go
file:
path: /users/jcavallo/local/go
state: directory
- name: Install Go
command: rm -rf /users/jcavallo/local/go
- name: Install Go pt2
command: tar -C /users/jcavallo/local -xzf /users/jcavallo/go1.17.7.linux-amd64.tar.gz
- name : Install Someta on all Hosts
command: chdir=/users/jcavallo/local/go/bin ./go install github.com/jsommers/someta@latest
become_user: jcavallo
- name: Check if ElF as been cloned in
stat:
path: /users/jcavallo/ELF
register: dir_details
- name: Clone a repo with separate git directory
when: not dir_details.stat.exists
git:
repo: https://github.com/jsommers/ELF.git
dest: /users/jcavallo/ELF
- name: Remove the rate limit on all hosts
command: sysctl -w net.ipv4.icmp_ratelimit=0
become: yes
become_user: root
- name : Run ELF Setup manually PT 1
become: yes
become_user: root
shell: apt-get update && sudo apt-get install -y build-essential cmake git golang mtr linux-headers-$(uname -r) python3-pyroute2 python3-dev python3-pandas
- name : Run ELF Setup manually PT 2
become: yes
become_user: root
shell: go get -v github.com/m-lab/ndt7-client-go/cmd/ndt7-client
- name : Run ELF Setup manually PT 3
become: yes
become_user: root
shell: apt-get -y install bison build-essential cmake flex git libedit-dev llvm-dev libclang-dev python zlib1g-dev libelf-dev
- name : Run ELF Setup manually PT 4
become: yes
become_user: root
shell: apt-get -y install bison build-essential cmake flex git libedit-dev llvm-dev libclang-dev python zlib1g-dev libelf-dev
- name: Install python3-bpfcc
apt:
name: python3-bpfcc
state: present
- name: Check if TCPcongest as been cloned in
stat:
path: /users/jcavallo/TCPcongest
register: dir_details
- name: Clone in TCPConsig
when: not dir_details.stat.exists
git:
repo: https://github.com/jamescavallo/TCPcongsig.git
dest: /users/jcavallo/TCPcongest
- name: Add latency
command: "tc qdisc add dev eno2 root netem delay 10ms rate 1000mbit"
when: inventory_hostname in groups['router1']
- name: Add latency 2
command: "tc qdisc add dev eno2 root netem delay 10ms rate 1000mbit"
when: inventory_hostname in groups['router2']