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.

34 lines
978 B

---
- name: Copie de la configuration du deploiment server
become: yes
become_user: "{{ privileged_user }}"
hosts: all:!splunk_deployement_TIC:!splunk_monitoring_TIC:!splunk_uf_Linux_TIC
tasks:
- name: Copier le configuration DS dans Splunk
copy:
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
dest: /opt/splunk/etc/apps/
owner: splunk
group: splunk
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
become: yes
become_user: "{{ splunk_user }}"
- hosts: all
become: splunk_indexer_TIC
tasks:
- name: Changer le propriétaire et le groupe du répertoire1
file:
path: /tmp/data
owner: splunk
group: splunk
state: directory
- name: Changer le propriétaire et le groupe du répertoire2
file:
path: /tmp/data_cold
owner: splunk
group: splunk
state: directory