# include when and variables and Friday and I don't even

**URL:** <https://forum.ansible.com/t/include-when-and-variables-and-friday-and-i-dont-even/16603>\
**Category:** Ansible Project\
**Created:** [October 24, 2014, 8:54pm UTC](https://forum.ansible.com/t/include-when-and-variables-and-friday-and-i-dont-even/16603 "2014-10-24T20:54:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian1](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@brian1](https://forum.ansible.com/u/brian1)\
**Post date:** [October 24, 2014, 8:54pm UTC](https://forum.ansible.com/t/include-when-and-variables-and-friday-and-i-dont-even/16603/1 "2014-10-24T20:54:20Z")

</div>

I have a playbook. It’s got includes, and tags, and it works. But when I introduce a when it fails. And I’m too slow this long Friday to get what’s wrong.

[https://gist.github.com/bdunbar/82f55ed4f1de76cd3d6e](https://gist.github.com/bdunbar/82f55ed4f1de76cd3d6e)

Perhaps I’m going about this the wrong way.

I have an existing role (call it ‘sftp’) that - with tags - configures the host, and maintains the user accounts.

What I want is to have a playbook that, using the same variables in the role, simply creates ‘a’ user.

See the gist - I’m probably going about this in the dumbest way possible but don’t see how to make it smarter.

~brian

---

<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:** [October 25, 2014, 12:06am UTC](https://forum.ansible.com/t/include-when-and-variables-and-friday-and-i-dont-even/16603/2 "2014-10-25T00:06:30Z")

</div>

I think the key is here:

```auto

- include: prepare.yml, tags: ['prepare']

Where in your copy and paste you have it starting with a "{", this is not the same as in your error message,
so I think the actual in the file might not match what you typed.

```
