title: How to find a string in ansible "retries and until" block?
body: <p>I am installing some plugins and then checking the status in a command loop. I want to check the result of the status of the command and if the plugins are not installed I want to install it again with the help of retry module.</p>
  
  <pre><code>- name: install plugins
    command: "run {{ item }}"
    with_items:
    - install plugins
    - status
    register: result
    until: result.stdout.find("InstallPlugin1 and InstallPlugin2") != -1
    retries: 5
    delay: 10
  </code></pre>
  
  <p>I am using register to save the result and I know register saves the result in results and in this case it will save the result in "results" dict. Now I want to check a string in result of status command in until, which should be the 2nd value of results dictionary but I am not able to grab it. 
  when I use</p>
  
  <pre><code>debug: msg="{{ result['results'][1]['stdout'] }}" 
  </code></pre>
  
  <p>I can see the output of the status command but I dont know how to use this in until module. whenever I use results there it gives an error. I want to use something like </p>
  
  <pre><code>until: result['results'][1]['stdout'].find("all systems go") != -1
  </code></pre>