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.
21 lines
618 B
21 lines
618 B
---
|
|
- name: Check Splunk instance is running
|
|
uri:
|
|
url: "{{ cert_prefix }}://{{ inventory_hostname }}:{{ splunk_svc_port }}/services/server/info?output_mode=json"
|
|
method: GET
|
|
user: "{{ splunk_admin_user }}"
|
|
password: "{{ splunk_password }}"
|
|
validate_certs: false
|
|
register: task_response
|
|
until:
|
|
- task_response.status == 200
|
|
- lookup('pipe', 'date +"%s"')|int - task_response.json.entry[0].content.startup_time > 10
|
|
retries: "{{ retry_num }}"
|
|
delay: 3
|
|
ignore_errors: true
|
|
no_log: "{{ hide_password }}"
|
|
|
|
- name: Print response
|
|
debug:
|
|
var: task_response
|