Skip to content

Commit b4fbab0

Browse files
committed
convert CPU architecture from ansible string to amd64 or arm64 to match package names
1 parent f9f964a commit b4fbab0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deployments/ansible/roles/collector/tasks/apt_install_otel_collector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
- name: Install Splunk OpenTelemetry Collector via local DEB artifact
3939
ansible.builtin.apt:
40-
deb: /tmp/deb-{{ ansible_architecture }}-package
40+
deb: /tmp/deb-{% if ansible_architecture == 'aarch64' %}arm64{% else %}amd64{% endif %}-package
4141
notify:
4242
- "restart splunk-otel-collector"
4343
- "restart td-agent"

deployments/ansible/roles/collector/tasks/yum_install_otel_collector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
- name: Install Splunk OpenTelemetry Collector via local RPM artifact
3434
ansible.builtin.yum:
35-
name: /tmp/rpm-{{ ansible_architecture }}-package
35+
name: /tmp/rpm-{% if ansible_architecture == 'aarch64' %}arm64{% else %}amd64{% endif %}-package
3636
notify:
3737
- "restart splunk-otel-collector"
3838
- "restart td-agent"

deployments/ansible/roles/collector/tasks/zypper_install_otel_collector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
- name: Install Splunk OpenTelemetry Collector via local RPM artifact
3535
community.general.zypper:
36-
name: /tmp/rpm-{{ ansible_architecture }}-package
36+
name: /tmp/rpm-{% if ansible_architecture == 'aarch64' %}arm64{% else %}amd64{% endif %}-package
3737
notify:
3838
- "restart splunk-otel-collector"
3939
when: install_local_artifact

0 commit comments

Comments
 (0)