Skip to content

Commit

Permalink
feat: add new tool speedtest
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed May 24, 2024
1 parent a173eba commit 2698262
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ansible/playbooks/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,34 @@
apt:
name: autossh
state: latest

###########################
# speedtest
# Internet connection measurement for developers
#
# https://www.speedtest.net/apps/cli
###########################
- name: Tap a Homebrew repository -> teamookla/speedtest
when: ansible_distribution == 'MacOSX'
community.general.homebrew_tap:
name: teamookla/speedtest

- name: MacOS => install speedtest
when: ansible_distribution == 'MacOSX'
community.general.homebrew_cask:
name: speedtest

- name: Ubuntu => install speedtest script.deb.sh
when: ansible_distribution == 'Ubuntu'
become: yes
become_method: su
ansible.builtin.command:
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
# Ignore sudo error in the test
ignore_errors: yes

- name: Ubuntu => install speedtest
when: ansible_distribution == 'Ubuntu'
apt:
name: speedtest
state: latest

0 comments on commit 2698262

Please sign in to comment.