<p dir="auto">This issue is similar to the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15803105" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/3283" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/3283/hovercard" href="https://github.com/ansible/ansible/issues/3283">#3283</a>, which actually proposed exactly the same feature. I'm creating a new issue to bring attention back to this feature.</p>
<p dir="auto">It seems useful to be able to run only single task from a playbook. It can be achieved by defining a tag in 'roles' section of the playbook. However this approach has drawback: in every playbook where we will use the role we will have to define the same tag (which may clutter the playbook and introduces duplication).</p>
<p dir="auto">Implicit tag defined for each of the roles could be a option. Nice I think, since being able to run only selected role(s) seems to be useful. But it can also be considered as little mysterious. Maybe it would be better to introduce '--roles' parameter to ansible-playbook CLI instead.</p>
<p dir="auto">The other option could be ability to define tags for a role in the role itself (instead of in the playbook). It could be done i.e. by extending role's meta/main.yml file by adding section 'tags' to it (next to 'dependencies') which would define role's tags. The tags defined in meta could sum up with the tags defined in playbook.<br>
This way we could avoid duplication and avoid introducing the implicit tag.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>module name:  user</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0
  config file = None
  configured module search path = [u'/Users/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.4.2.0_1/libexec/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.14 (default, Sep 25 2017, 09:53:17) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0
  config file = None
  configured module search path = [u'/Users/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.4.2.0_1/libexec/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.14 (default, Sep 25 2017, 09:53:17) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">nothing changed</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<ul dir="auto">
<li>host: OSX High Sierra all patches</li>
</ul>
<p dir="auto">remote machines using Vagrant:</p>
<ul dir="auto">
<li>config.vm.box = "centos/7"</li>
<li>config.vm.box = "geerlingguy/ubuntu1604"</li>
</ul>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">I tried to create a user via the user module and set the skeleton option to /etc/skel . The module did not copy the contents of /etc/skel to the user's home directory.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="      - name: Create Jenkins user
        user:
            name: jenkins
            comment: &quot;Jenkins slave user&quot;
            system: yes
            createhome: yes
            skeleton: /etc/skel
            home: /data/jenkins
            shell: /bin/bash"><pre class="notranslate">      - <span class="pl-ent">name</span>: <span class="pl-s">Create Jenkins user</span>
        <span class="pl-ent">user</span>:
            <span class="pl-ent">name</span>: <span class="pl-s">jenkins</span>
            <span class="pl-ent">comment</span>: <span class="pl-s"><span class="pl-pds">"</span>Jenkins slave user<span class="pl-pds">"</span></span>
            <span class="pl-ent">system</span>: <span class="pl-s">yes</span>
            <span class="pl-ent">createhome</span>: <span class="pl-s">yes</span>
            <span class="pl-ent">skeleton</span>: <span class="pl-s">/etc/skel</span>
            <span class="pl-ent">home</span>: <span class="pl-s">/data/jenkins</span>
            <span class="pl-ent">shell</span>: <span class="pl-s">/bin/bash</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The contents of /etc/skel should be copied to /data/jenkins</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Nothing happened. The files were not copied. No errors were reported when running Ansible playbook.</p>