-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00-install.yaml
67 lines (61 loc) · 1.47 KB
/
00-install.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
---
- name: benchmark test harness
hosts: all
tasks:
- ping:
- yum:
name:
- iperf3
- fio
- pcp
- pcp-selinux
- pcp-system-tools
- sysstat
- copy:
content: "{{ data }}"
mode: 0644
owner: root
group: root
dest: /etc/systemd/system/fio.service
vars:
data: |
[Unit]
Description=Start fio as a server in listen mode
After=syslog.target systemd-user-sessions.service
[Service]
ExecStart=/usr/bin/fio --server
KillMode=process
[Install]
WantedBy=multi-user.target
- copy:
content: "{{ data }}"
mode: 0644
owner: root
group: root
dest: /etc/systemd/system/iperf3.service
vars:
data: |
[Unit]
Description=Start iperf3 as a server in listen mode
After=syslog.target systemd-user-sessions.service
[Service]
ExecStart=/usr/bin/iperf3 -s
KillMode=process
[Install]
WantedBy=multi-user.target
- shell: restorecon -Rv /etc/systemd/system
- shell: systemctl daemon-reload
- service:
name: fio
enabled: yes
state: started
- service:
name: iperf3
enabled: yes
state: started
- service:
name: pmcd
state: started
- service:
name: pmlogger
state: started