title: What's the difference between roles and tasks (and tags) in Ansible?
body: <p>I'm finding myself getting confused between <em>roles</em> and <em>tasks</em> all the time. </p>
  
  <p>I get that tags are a way to tag individual items, but I'm confused how I'd use them.</p>
  
  <p>Let's say I had to do the following </p>
  
  <pre><code>Users
    Create a user named "deploy"
    Add ssh key for "deploy" user
  
  Git
    Install git
    Clone some git repo
  </code></pre>
  
  <p>Would "Users" and "Git" be my two main roles in the top level YML file? Would each sub-item (e.g "Install Git") be a task? Would I tag each sub-task with a tag? Or do I tag roles with a tag?</p>
  
  <p>Just looking for an overview of Ansible hierarchy. </p>