title: Why ansible skips hosts even after using add-host module in bootstrapping EC2 instances
body: <p>Ansible - 1.9.3</p>
  
  <p>Dynamic inventory is used.  </p>
  
  <p>Bootstrapping an EC2 instance and adding the instance to host using add-host, but it skips the plays for the newly created hosts. But when running the play next time, it finds the host and starts executing.<br>
  Here is the snippet,  </p>
  
  <pre><code>hosts: localhost
  tasks:
    - name: something
      ec2: this module will create instances
    - name: adding hosts
      add host: name=(name of the new instance)
  hosts: new host
  tasks: 
    - something
  </code></pre>
  
  <p>The above is just an example .This is the scenario.</p>