# Some tasks in ansible are't executed

**URL:** <https://forum.ansible.com/t/some-tasks-in-ansible-aret-executed/15555>\
**Category:** Ansible Project\
**Created:** [June 26, 2014, 11:59am UTC](https://forum.ansible.com/t/some-tasks-in-ansible-aret-executed/15555 "2014-06-26T11:59:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Dryndik](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Roman\_Dryndik](https://forum.ansible.com/u/Roman_Dryndik)\
**Post date:** [June 26, 2014, 11:59am UTC](https://forum.ansible.com/t/some-tasks-in-ansible-aret-executed/15555/1 "2014-06-26T11:59:14Z")

</div>

I’m using ansible for some deployment issues.

I want to do the following:

1. Install virtualenv
2. Activate installed virtual environment
3. Check if I’m in virtual environment

For this purposes I have the following playbook:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [June 26, 2014, 1:23pm UTC](https://forum.ansible.com/t/some-tasks-in-ansible-aret-executed/15555/2 "2014-06-26T13:23:28Z")

</div>

You don’t put the “tasks:” category in a playbook more than once.

This is a hash data structure, so you are basically clobbering it with another, again and again.

Just let the value of “tasks:” be a YAML list, and only put tasks in there once.
