Wait Until Windows Host Online v2

Pauses execution until the Windows host responds to a ping over WinRM.

Ansible Microsoft Windows · 5 tasks · 1 input · 0 outputs

Details

IDWait Until Windows Host Online v2
From Version6.0.0
Tasks5

Inputs

  • host

Commands used

win-ping

Flowchart

yes Start Start Try to connect to host - win-ping Try to connect to host win-ping Host ready? Host ready? Re-run Re-run Exit Loop - Set Exit Loop Set
id: Wait Until Windows Host Online v2
version: -1
name: Wait Until Windows Host Online v2
description: Pauses execution until the Windows host responds to a ping over WinRM.
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: 004bfde8-3273-4c70-868a-84f5afa034fb
    type: start
    task:
      id: 004bfde8-3273-4c70-868a-84f5afa034fb
      version: -1
      name: ""
      iscommand: false
      brand: ""
      description: ''
    nexttasks:
      '#none#':
      - "1"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 50
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "1":
    id: "1"
    taskid: 3433f21a-7c6b-466d-894b-5c74278c1362
    type: regular
    task:
      id: 3433f21a-7c6b-466d-894b-5c74278c1362
      version: -1
      name: Try to connect to host
      description: |-
        A windows version of the classic ping module
         Further documentation available at https://docs.ansible.com/ansible/2.9/modules/win_ping_module.html
      script: '|||win-ping'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "2"
    scriptarguments:
      data: {}
      host:
        simple: ${inputs.host}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 195
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "2":
    id: "2"
    taskid: f3b8dd0e-2742-43f1-8a62-6222d608a25f
    type: condition
    task:
      id: f3b8dd0e-2742-43f1-8a62-6222d608a25f
      version: -1
      name: Host ready?
      type: condition
      iscommand: false
      brand: ""
      description: ''
    nexttasks:
      '#default#':
      - "3"
      "yes":
      - "4"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isEqualString
          left:
            value:
              simple: MicrosoftWindows.WinPing.ping
            iscontext: true
          right:
            value:
              simple: pong
    view: |-
      {
        "position": {
          "x": 265,
          "y": 370
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "3":
    id: "3"
    taskid: 11da9d88-805b-4407-8928-2651967ebbe4
    type: title
    task:
      id: 11da9d88-805b-4407-8928-2651967ebbe4
      version: -1
      name: Re-run
      type: title
      iscommand: false
      brand: ""
      description: ''
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 40,
          "y": 545
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "4":
    id: "4"
    taskid: 39cdcf8b-3af2-4b4c-858c-4b3c77df81d6
    type: regular
    task:
      id: 39cdcf8b-3af2-4b4c-858c-4b3c77df81d6
      version: -1
      name: Exit Loop
      description: Set a value in context under the key you entered.
      scriptName: Set
      type: regular
      iscommand: false
      brand: ""
    scriptarguments:
      append: {}
      key:
        simple: exitloop
      stringify: {}
      value:
        simple: "true"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 480,
          "y": 545
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 590,
        "width": 820,
        "x": 40,
        "y": 50
      }
    }
  }
inputs:
- key: host
  value: {}
  required: true
  description: ""
  playbookInputQuery:
outputs: []
tests:
- No tests (auto formatted)
fromversion: 6.0.0