Skip to content

Instantly share code, notes, and snippets.

@rvprasad
Last active February 5, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvprasad/8be301b9eb08a2d9d78915962ff7b4aa to your computer and use it in GitHub Desktop.
Save rvprasad/8be301b9eb08a2d9d78915962ff7b4aa to your computer and use it in GitHub Desktop.
Measure network throughput in best case scenario -- one-to-one
- hosts: worker_raspi
remote_user: life
strategy: free
tasks:
- name: iperf1
shell: iperf -t 20 -c 192.168.2.10
when: ansible_host == '192.168.2.13'
- name: iperf2
shell: iperf -t 20 -c 192.168.2.11
when: ansible_host == '192.168.2.14'
- name: iperf3
shell: iperf -t 20 -c 192.168.2.12
when: ansible_host == '192.168.2.15'
worker_raspi:
hosts:
192.168.2.[13:15]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment