support linux arm aarch64

This commit is contained in:
Nathaniel Landau
2022-09-09 12:22:37 -04:00
parent 18b0d2b972
commit 82a95a3602
3 changed files with 54 additions and 39 deletions

View File

@@ -50,6 +50,13 @@
- ansible_os_family == 'Debian'
- ansible_architecture == 'armv7l'
- name: "set variable: Set speedtest download Binary (aarch64)"
ansible.builtin.set_fact:
speedtest_download_file_uri: "https://install.speedtest.net/app/cli/ookla-speedtest-{{ speedtest_cli_version }}-linux-aarch64.tgz"
when:
- ansible_os_family == 'Debian'
- ansible_architecture == 'aarch64'
- name: "Install/upgrade Telegraf"
block:
- name: "set fact: Need telegraf install?"
@@ -79,8 +86,8 @@
check_mode: false
changed_when: false
when:
- telegraph_binary_location is defined
- not need_telegraf_install
- telegraph_binary_location is defined
- name: "set fact: Need telegraf install?"
ansible.builtin.set_fact:
@@ -90,12 +97,6 @@
- not need_telegraf_install
- current_telegraf_version.stdout is version(telegraf_version, '<')
- ansible.builtin.debug:
msg: "Current telegraf version {{ current_telegraf_version.stdout }} is lower than specified {{ telegraf_version }}"
when:
- telegraph_binary_location is defined
- current_telegraf_version.stdout is version(telegraf_version, '<')
- name: install telegraf (MacOS)
community.general.homebrew:
name: telegraf