title: How to run only one task in ansible playbook?
body: <p>Is there a way to only run one task in ansible playbook?</p>
  <p>For example, in <code>roles/hadoop_primary/tasks/hadoop_master.yml</code>. I have <code>&quot;start hadoop job tracker services&quot;</code> task.  Can I just run that one task?</p>
  <p>hadoop_master.yml file:</p>
  <pre class="lang-yaml prettyprint-override"><code># Playbook for  Hadoop master servers
  
  - name: Install the namenode and jobtracker packages
    apt: name={{item}} force=yes state=latest
    with_items: 
     - hadoop-0.20-mapreduce-jobtracker
     - hadoop-hdfs-namenode
     - hadoop-doc
     - hue-plugins
  
  - name: start hadoop jobtracker services
    service: name=hadoop-0.20-mapreduce-jobtracker state=started
    tags:
     debug
  </code></pre>