diff --git a/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml b/roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml index 618e591..b619ced 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 -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 }}"