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

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

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

I think the key is here:


- 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.