forked from dgarros/nanog77-tsdb-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpb.config.linux.yaml
More file actions
76 lines (64 loc) · 1.67 KB
/
pb.config.linux.yaml
File metadata and controls
76 lines (64 loc) · 1.67 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
- name: Initilize Linux Servers
hosts: [ linux ]
gather_facts: no
become: yes
tasks:
- name: Configure Hostname
hostname:
name: "{{inventory_hostname}}"
- name: Install aptitude using apt
apt:
name: aptitude
state: latest
update_cache: yes
force_apt_get: yes
- name: Generate Configuration
template:
src: "linux_netplan.j2"
dest: "/etc/netplan/60-ntc.yaml"
mode: 0644
when: interfaces is defined
register: netplan
- name: Apply changes to netplan
command: netplan apply
when:
- interfaces is defined
- netplan is changed
- name: Install Iperf, Iperf3 & nuttcp
apt:
name: "{{ item }}"
state: latest
loop: [ iperf, iperf3, nuttcp ]
- name: Install NGINX
apt:
name: nginx
state: latest
when:
- "'srv' in inventory_hostname"
- name: Install docker
include_role:
name: install_docker
- name: Install K6
include_role:
name: install_k6
when:
- "'srv' in inventory_hostname"
- name: Download file to generate Payload
get_url:
url: https://wallpaperaccess.com/full/626310.jpg
dest: /var/www/html/big_image.jpg
when:
- "'srv' in inventory_hostname"
- name: Generate K6 test file
template:
src: "k6.j2"
dest: "/tmp/test.j2"
mode: 0777
when:
- "'srv' in inventory_hostname"
- name: Install libfontconfig1 (jumphost only)
apt:
name: libfontconfig1
state: latest
when:
- "'jump' in inventory_hostname"