# is it possible to create tags from a variable?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062>\
**Category:** Ansible Project\
**Created:** [December 4, 2013, 6:27pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062 "2013-12-04T18:27:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xu\_Chen](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Post date:** [December 4, 2013, 6:27pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062/1 "2013-12-04T18:27:03Z")

</div>

I have a list of tasks, but very similar to each other yet I want to tag them differently. I want to do something like this:

- name: set db password  
action: command ./set\_password {{ item }}  
tags:
- common-tag
- {{ item }}  
with\_items:
- httpd
- mysql

Is this possible? Thanks…

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 4, 2013, 11:46pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062/2 "2013-12-04T23:46:31Z")

</div>

No, this is not possible.

– Michael
