Fixup 4094: Debug agents when nothing is return (#4125)
parent
2054a98cf7
commit
5e260fe23a
|
@ -71,6 +71,14 @@
|
|||
- debug: var=agents.content|from_json
|
||||
failed_when: not agents is success and not agents.content=='{}'
|
||||
run_once: true
|
||||
when:
|
||||
- agents.content[0] == '{'
|
||||
|
||||
- debug: var=agents
|
||||
failed_when: not agents is success and not agents.content=='{}'
|
||||
run_once: true
|
||||
when:
|
||||
- agents.content[0] != '{'
|
||||
|
||||
- name: Check netchecker status
|
||||
uri: url=http://{{ ansible_default_ipv4.address }}:{{netchecker_port}}/api/v1/connectivity_check status_code=200 return_content=yes
|
||||
|
|
Loading…
Reference in New Issue