diff --git a/roles/splunk_deploy/tasks/Deploy_Conf_SHC_BS.yml b/roles/splunk_deploy/tasks/Deploy_Conf_SHC_BS.yml index ae003ca..5c91063 100644 --- a/roles/splunk_deploy/tasks/Deploy_Conf_SHC_BS.yml +++ b/roles/splunk_deploy/tasks/Deploy_Conf_SHC_BS.yml @@ -1,5 +1,5 @@ --- - name: "Boot-Strap" - command: "{{ splunk_exec }} bootstrap shcluster-captain -servers_list "https://{{ group.splunk_search_head[0] }}:{{ splunk_svc_port }},https://{{ group.splunk_search_head[1] }}:{{ splunk_svc_port }}"" + command: "{{ splunk_exec }} bootstrap shcluster-captain -auth {{ splunk_admin_user }}:'{{ splunk_password }}' -servers_list "https://{{ group.splunk_search_head[0] }}:{{ splunk_svc_port }},https://{{ group.splunk_search_head[1] }}:{{ splunk_svc_port }}"" become: yes become_user: "{{ privileged_user }}" diff --git a/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml b/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml index b619ced..4201464 100644 --- a/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml +++ b/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml @@ -1,6 +1,6 @@ --- - name: "Initialize the Members" - command: "{{ splunk_exec }} init shcluster-config -auth {{ splunk_admin_user }}:'{{ splunk_password }}'' -mgmt_uri https://{{ inventory_hostname }}:{{ splunk_svc_port }} -replication_port {{ splunk_shcluster_replication_port }} -secret {{ splunk_password }} -shcluster_label {{ splunk_shcluster_label }}" + command: "{{ splunk_exec }} init shcluster-config -auth {{ splunk_admin_user }}:'{{ splunk_password }}' -mgmt_uri https://{{ inventory_hostname }}:{{ splunk_svc_port }} -replication_port {{ splunk_shcluster_replication_port }} -secret {{ splunk_password }} -shcluster_label {{ splunk_shcluster_label }}" become: yes become_user: "{{ privileged_user }}"