when: "'dev' in tags" not working anymore - changed behavior between 1.7.2 and 1.8 for tags?

24 views
Skip to first unread message

Mirko Friedenhagen

unread,
Nov 26, 2014, 3:21:34 AM11/26/14
to ansible-project
Hello,

I have ported a bunch of puppet scripts to Ansible and we had a lot of
puppet inner or extended classes.

So basically I decided to switch on tags while including. In
role/basepkg/tasks/main.yml I have
- include dev.yml
when: "'dev' in tags"
and invoke this via
{ role: basepkg, tags: ['dev'] }
Worked flawlessly with 1.7.2 but now in 1.8 it chokes with:
```
error while evaluating conditional: 'dev' in tags
```
Is this deprecated?

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/

Mirko Friedenhagen

unread,
Nov 26, 2014, 8:35:11 AM11/26/14
to ansible-project
To answer myself (maybe as documentation):
- I just renamed tags to includes and have an empty includes variable
in the role defaults now.
Reply all
Reply to author
Forward
0 new messages