title: Run ansible tasks based on machine names in a group
body: <p>I want to create symlinks for a file using ansible only when I have a certain machine hostname.
  I know <code>inventory_hostname</code> will give me the hostname, but can I do something like:
  <code>when: inventory_hostname in group['machines']</code> so I can run this with all machines in that group?
  Then, I want to symlink based on name of machine. So:</p>
  
  <pre><code>file:
      src: {{ ansible_hostname }}.png
      dest: anything.png
  </code></pre>