iperf3/server/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Thu, 20 Jul 2023 18:07:44 -0500
changeset 214 3069b7d001f7
parent 147 83e9097520a0
permissions -rw-r--r--
Added nostr relayer role.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
147
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: apt install iperf3
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  apt: name="iperf3"
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
- name: install iperf3 service
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
  become: yes
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
  copy:
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
    src: "iperf3.service"
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
    dest: "/lib/systemd/system/iperf3.service"
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
    mode: "0644"
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  notify: restart iperf3
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
- name: ensure iperf3 is started
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  become: yes
83e9097520a0 Add iperf3 server service.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  systemd: service="iperf3.service" enabled="yes" state="started" daemon_reload="yes"