Mise à jour de 'install_splunk.yml'

master
admingit 1 year ago
parent 538126765a
commit f639821162

@ -1,67 +1,67 @@
#- hosts: splunk_indexer - hosts: splunk_indexer
# tasks: tasks:
# - name: Gathering Facts - name: Gathering Facts
# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_idx.yml include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_idx.yml
#- hosts: splunk_cluster_master - hosts: splunk_cluster_master
# tasks: tasks:
# - name: Gathering Facts - name: Gathering Facts
# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml
#- hosts: splunk_search_head - hosts: splunk_search_head
# tasks: tasks:
# - name: Gathering Facts - name: Gathering Facts
# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml
- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows - hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows
tasks: tasks:
- name: Gathering Facts - name: Gathering Facts
include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml
when: when:
- splunk_get_fact is not defined - splunk_get_fact is not defined
- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows - hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows
serial: serial:
- 1 - 1
- 100% - 100%
roles: roles:
- splunk_common - splunk_common
tags: all,installation tags: all,installation
- hosts: localhost - hosts: localhost
connection: local connection: local
tasks: tasks:
- name: Cleanup secret - name: Cleanup secret
file: file:
dest: "/tmp/splunk_secret" dest: "/tmp/splunk_secret"
state: "absent" state: "absent"
become: yes become: yes
become_user: root become_user: root
- hosts: splunk_indexer - hosts: splunk_indexer
become: true become: true
become_user: root become_user: root
tasks: tasks:
- name: Changer le propriétaire et le groupe du répertoire1 - name: Changer le propriétaire et le groupe du répertoire1
file: file:
path: /data/splunk_data path: /data/splunk_data
owner: splunk owner: splunk
group: splunk group: splunk
state: directory state: directory
- name: Changer le propriétaire et le groupe du répertoire2 - name: Changer le propriétaire et le groupe du répertoire2
file: file:
path: /data_cold/splunk_data path: /data_cold/splunk_data
owner: splunk owner: splunk
group: splunk group: splunk
state: directory state: directory
- name: "Start Splunk via cli" - name: "Start Splunk via cli"
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
- name: "Boot-Start Splunk via cli" - name: "Boot-Start Splunk via cli"
command: "{{ splunk_exec }} enable boot-start" command: "{{ splunk_exec }} enable boot-start"
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"

Loading…
Cancel
Save