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.

36 lines
950 B

- name: Copier le répertoire dans SplunkForwarder
become: yes
copy:
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
dest: /opt/splunkforwarder/etc/apps/
owner: splunk
group: splunk
- name: Copier la configuration Rsyslog
become: yes
copy:
src: "{{ playbook_dir }}/Config_Rsyslog/01-Splunk_Forwarder.conf"
dest: /etc/rsyslog.d/
owner: root
group: root
- name: restart-service-rsyslog
service:
name: rsyslog.service
enabled: yes
state: restarted
- name: "Stop Splunk via cli"
command: "{{ splunk_exec_uf }} stop"
become: yes
become_user: "{{ splunk_user }}"
- name: "Enable boot-start Splunk via cli"
command: "{{ splunk_exec_uf }} enable boot-start"
become: yes
become_user: "{{ privileged_user }}"
- name: "Start Splunk via cli"
command: "{{ splunk_exec_uf }} start"
become: yes
become_user: "{{ privileged_user }}"