From c216adad03b74dbf954b0b2ed0c615a25f00e1ea Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Wed, 14 Mar 2018 21:03:58 +0100 Subject: added iperf3 --- roles/install_iperf3/files/iperf3-tcp.service | 9 +++++++++ roles/install_iperf3/tasks/main.yml | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 roles/install_iperf3/files/iperf3-tcp.service create mode 100644 roles/install_iperf3/tasks/main.yml (limited to 'roles/install_iperf3') diff --git a/roles/install_iperf3/files/iperf3-tcp.service b/roles/install_iperf3/files/iperf3-tcp.service new file mode 100644 index 0000000..b35a534 --- /dev/null +++ b/roles/install_iperf3/files/iperf3-tcp.service @@ -0,0 +1,9 @@ +[Unit] +Description=Iperf3 TCP Server +After=network.target + +[Service] +ExecStart=/usr/bin/iperf3 -s -V + +[Install] +WantedBy=multi-user.target diff --git a/roles/install_iperf3/tasks/main.yml b/roles/install_iperf3/tasks/main.yml new file mode 100644 index 0000000..a7e5df6 --- /dev/null +++ b/roles/install_iperf3/tasks/main.yml @@ -0,0 +1,16 @@ +--- +- name: install iperf3 + pacman: + name: iperf3 + state: present + +- name: copy iperf3 systemd-service + copy: + src: iperf3-tcp.service + dest: /etc/systemd/system/iperf3-tcp.service + +- name: start and enable iperf3 tcp + systemd: + name: iperf3-tcp.service + enabled: yes + state: started -- cgit v1.2.3-54-g00ecf