title: looping a shell command in ansible
body: <p>I'm trying to get going with some more advanced Ansible playbooks and have hit a wall.  I'm trying to get Ansible to do what this /bin/bash 'for' loop does;</p>
  
  <pre><code>for i in $(&lt;/filename.txt);do '/some/command options=1 user=usera server=$i';done
  </code></pre>
  
  <p>filesnames.txt contains 50-100 hostnames.</p>
  
  <p>I can't use jinja templates as the command has to be run, not just the config file updated.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks in advance,
  Jeremy</p>