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
969 B

#- name: Copier le répertoire dans SplunkForwarder
# become: yes
# copy:
# src: "{{ playbook_dir }}/Apps_for_Splunk/IDN-Conf_Proxy_Forwarder"
# 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-IDN_Lyon.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 }}"