title: ansible generate *.retry file error when there are multiple plays in playbook
body: <p>For example, deploy.yml is a ansible playbook. There are two plays in deploy.yml, play1 and play2. </p>
  
  <pre><code>$ cat deploy.yml
  - hosts: nodes
    remote_user: cloud
    become: yes
    tasks:
    - name: play1
      copy: src=test1 dest=/root
  
  - hosts: nodes
    remote_user: cloud
    become: yes
    tasks:
    - name: play2
      copy: src=test2 dest=/root
  
  $ cat hosts
  [nodes]
  192.168.1.12
  192.168.1.13
  </code></pre>
  
  <p>Running</p>
  
  <pre><code>ansible-playbook -i hosts deploy.yml
  </code></pre>
  
  <p>When play1 failed on 192.168.1.12 but success on 192.168.1.13, the deploy.retry only list 192.168.1.12 but no 192.168.1.13.</p>
  
  <pre><code>$ cat deploy.retry
  192.168.1.12
  </code></pre>
  
  <p>Then I running</p>
  
  <pre><code>ansible-playbook -i hosts deploy.yml --limit @deploy.retry
  </code></pre>
  
  <p>I got a wrong result of play2 haven't be running on 192.168.1.13! Some people know how to solve this problem?</p>