File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed
deployments/ansible/roles/collector/tasks Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 8
8
- gnupg
9
9
state : present
10
10
update_cache : yes
11
+ when : not install_local_artifact
11
12
12
13
- name : Download an apt signing key for Splunk OpenTelemetry Collector
13
14
ansible.builtin.get_url :
34
35
- " restart td-agent"
35
36
when : not install_local_artifact
36
37
37
- - name : Install Splunk OpenTelemetry Collector via local artifact (arm64)
38
+ - name : Install Splunk OpenTelemetry Collector via local DEB artifact
38
39
ansible.builtin.apt :
39
40
deb : /tmp/deb-{{ ansible_facts.ansible_architecture }}-package
40
41
notify :
Original file line number Diff line number Diff line change 6
6
name : " libcap"
7
7
state : present
8
8
update_cache : yes
9
+ when : not install_local_artifact
9
10
10
11
- name : Add Splunk OpenTelemetry Collector repo to yum source list
11
12
ansible.builtin.yum_repository :
15
16
gpgkey : " {{ splunk_repo_base_url }}/otel-collector-rpm/splunk-B3CD4420.pub"
16
17
gpgcheck : yes
17
18
enabled : yes
18
- when : not (splunk_skip_repo | bool)
19
+ when : not (splunk_skip_repo | bool) and not install_local_artifact
19
20
20
21
- name : Install Splunk OpenTelemetry Collector via yum package manager
21
22
ansible.builtin.yum :
27
28
notify :
28
29
- " restart splunk-otel-collector"
29
30
- " restart td-agent"
31
+ when : not install_local_artifact
32
+
33
+ - name : Install Splunk OpenTelemetry Collector via local RPM artifact
34
+ ansible.builtin.yum :
35
+ name : /tmp/rpm-{{ ansible_facts.ansible_architecture }}-package
36
+ notify :
37
+ - " restart splunk-otel-collector"
38
+ - " restart td-agent"
39
+ when : install_local_artifact
Original file line number Diff line number Diff line change 6
6
name : " libcap-progs"
7
7
state : present
8
8
update_cache : yes
9
+ when : not install_local_artifact
9
10
10
11
- name : Import the Splunk GPG key
11
12
ansible.builtin.rpm_key :
12
13
state : present
13
14
key : " {{ splunk_repo_base_url }}/otel-collector-rpm/splunk-B3CD4420.pub"
14
- when : not (splunk_skip_repo | bool)
15
+ when : not (splunk_skip_repo | bool) and not install_local_artifact
15
16
16
17
- name : Add Splunk OpenTelemetry Collector repo to zypper source list
17
18
ansible.builtin.template :
18
19
src : collector-zypper.repo.j2
19
20
dest : /etc/zypp/repos.d/splunk-otel-collector.repo
20
- when : not (splunk_skip_repo | bool)
21
+ when : not (splunk_skip_repo | bool) and not install_local_artifact
21
22
22
23
- name : Install Splunk OpenTelemetry Collector via zypper package manager
23
24
community.general.zypper :
28
29
update_cache : yes
29
30
notify :
30
31
- " restart splunk-otel-collector"
32
+ when : not install_local_artifact
33
+
34
+ - name : Install Splunk OpenTelemetry Collector via local RPM artifact
35
+ community.general.zypper :
36
+ name : /tmp/rpm-{{ ansible_facts.ansible_architecture }}-package
37
+ notify :
38
+ - " restart splunk-otel-collector"
39
+ when : install_local_artifact
You can’t perform that action at this time.
0 commit comments