Clean and add code

master
JocelynPa 3 years ago
parent 7a71f39334
commit 167bb1ae05

@ -14,18 +14,6 @@
- splunk_common_uf - splunk_common_uf
tags: all,installation tags: all,installation
- hosts: splunk_uf_Linux
tasks:
- name: "Start Splunk via cli"
command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt"
become: yes
become_user: "{{ privileged_user }}"
- name: "Boot-Start Splunk via cli"
command: "{{ splunk_exec_uf }} enable boot-start"
become: yes
become_user: "{{ privileged_user }}"
- hosts: localhost - hosts: localhost
connection: local connection: local
tasks: tasks:

@ -7,7 +7,17 @@
owner: splunk owner: splunk
group: splunk group: splunk
- 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" - name: "Start Splunk via cli"
command: "{{ splunk_exec_uf }} restart" command: "{{ splunk_exec_uf }} start"
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
Loading…
Cancel
Save