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.
58 lines
1.4 KiB
58 lines
1.4 KiB
- hosts: all_splunk_instances:splunk_hf_Linux:!splunk_uf_Linux:!splunk_uf_Windows
|
|
tasks:
|
|
- name: Copie sources
|
|
become: yes
|
|
become_user: root
|
|
shell: scp admin@10.10.40.21:{{ splunk_build_location }} /tmp/
|
|
|
|
- name: Gathering Facts
|
|
include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml
|
|
when:
|
|
- splunk_get_fact is not defined
|
|
|
|
- hosts: all_splunk_instances:splunk_hf_Linux:!splunk_uf_Linux:!splunk_uf_Windows
|
|
serial:
|
|
- 1
|
|
- 100%
|
|
roles:
|
|
- splunk_common
|
|
tags: all,installation
|
|
|
|
- hosts: localhost
|
|
connection: local
|
|
tasks:
|
|
- name: Cleanup secret
|
|
file:
|
|
dest: "/tmp/splunk_secret"
|
|
state: "absent"
|
|
become: yes
|
|
become_user: root
|
|
|
|
- hosts: splunk_indexer
|
|
become: true
|
|
become_user: root
|
|
tasks:
|
|
- name: Changer le propriétaire et le groupe du répertoire1
|
|
file:
|
|
path: /data/splunk_data
|
|
owner: splunk
|
|
group: splunk
|
|
state: directory
|
|
|
|
- name: Changer le propriétaire et le groupe du répertoire2
|
|
file:
|
|
path: /data_cold/splunk_data
|
|
owner: splunk
|
|
group: splunk
|
|
state: directory
|
|
|
|
- name: "Start Splunk via cli"
|
|
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
|
|
become: yes
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
# - name: "Boot-Start Splunk via cli"
|
|
# command: "{{ splunk_exec }} enable boot-start"
|
|
# become: yes
|
|
# become_user: "{{ privileged_user }}"
|