美文网首页
ansible 循环判断http status

ansible 循环判断http status

作者: _fishman | 来源:发表于2020-05-22 15:57 被阅读0次
---
- name: Get Service status
  hosts: all
  tasks:
    - name: Get Service status 
      uri:
        url: "http://baidu.com/"
        follow_redirects: none
        method: GET
      register: _result
      until: _result.status == 200
      retries: 3
      delay: 3

相关文章

网友评论

      本文标题:ansible 循环判断http status

      本文链接:https://www.haomeiwen.com/subject/ykoqahtx.html