title: Ansible Different hosts, different action
body: <p>with Ansible I need to copy a script in different clients/hosts, then I need to modify a line in the script. The line depends of the client and is not the same each times. 
  Each hosts have the same name. Each clients name is different. </p>
  
  <p>Something like that:</p>
  
  <pre><code>    lineinfile: &gt;
        state=present
        dest=/path/to/myscript
        line="/personal line
      when: {{ clients/hosts }} is {{ client/host }}
  </code></pre>
  
  <p>As you can see, I have no idea about the way to proceed.</p>