You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
935 B
40 lines
935 B
---
|
|
- name: Remove old manifest files
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: "absent"
|
|
ignore_errors: yes
|
|
become: yes
|
|
become_user: "{{ privileged_user }}"
|
|
with_items:
|
|
- "{{ manifests.files }}"
|
|
when: splunk_upgrade | bool
|
|
|
|
- name: Remove old directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: "absent"
|
|
ignore_errors: yes
|
|
become: yes
|
|
become_user: "{{ privileged_user }}"
|
|
with_items:
|
|
- "{{ splunk_home }}/bin"
|
|
- "{{ splunk_home }}/lib"
|
|
- "{{ splunk_home }}/share"
|
|
- "{{ splunk_home }}/Python-2.7"
|
|
when: splunk_upgrade | bool
|
|
|
|
- name: Install Splunk
|
|
include_tasks: install_tasks/install_splunk_{{ splunk_build_type }}.yml
|
|
|
|
- name: Remove installers
|
|
file:
|
|
dest: "{{ item }}"
|
|
state: "absent"
|
|
ignore_errors: yes
|
|
become: yes
|
|
become_user: "{{ privileged_user }}"
|
|
with_items:
|
|
- "{{ splunk_build_location }}"
|
|
- "/tmp/splunk_msi"
|