Skip to content

Commit 43286af

Browse files
committed
Add yum and zypper package lists for autoinstrumentation, even when local install
1 parent 3bc254b commit 43286af

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
name: "libcap"
77
state: present
88
update_cache: yes
9-
when: not install_local_artifact
109

1110
- name: Add Splunk OpenTelemetry Collector repo to yum source list
1211
ansible.builtin.yum_repository:
@@ -16,7 +15,7 @@
1615
gpgkey: "{{ splunk_repo_base_url }}/otel-collector-rpm/splunk-B3CD4420.pub"
1716
gpgcheck: yes
1817
enabled: yes
19-
when: not (splunk_skip_repo | bool) and not install_local_artifact
18+
when: not (splunk_skip_repo | bool)
2019

2120
- name: Install Splunk OpenTelemetry Collector via yum package manager
2221
ansible.builtin.yum:

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@
66
name: "libcap-progs"
77
state: present
88
update_cache: yes
9-
when: not install_local_artifact
109

1110
- name: Import the Splunk GPG key
1211
ansible.builtin.rpm_key:
1312
state: present
1413
key: "{{ splunk_repo_base_url }}/otel-collector-rpm/splunk-B3CD4420.pub"
15-
when: not (splunk_skip_repo | bool) and not install_local_artifact
14+
when: not (splunk_skip_repo | bool)
1615

1716
- name: Add Splunk OpenTelemetry Collector repo to zypper source list
1817
ansible.builtin.template:
1918
src: collector-zypper.repo.j2
2019
dest: /etc/zypp/repos.d/splunk-otel-collector.repo
21-
when: not (splunk_skip_repo | bool) and not install_local_artifact
20+
when: not (splunk_skip_repo | bool)
2221

2322
- name: Install Splunk OpenTelemetry Collector via zypper package manager
2423
community.general.zypper:

0 commit comments

Comments
 (0)