Hello,
I’m facing a problem and I’m not sure if it’s a bug or a feature
I have a role that includes other role (using meta dependency), when including that role more than once in my playbook, it runs only once:
role/mymetarole/meta/main.yml:
`
Hello,
I’m facing a problem and I’m not sure if it’s a bug or a feature
I have a role that includes other role (using meta dependency), when including that role more than once in my playbook, it runs only once:
role/mymetarole/meta/main.yml:
`
Not sure, but I'd think you need to add this to
role/otherrole/meta/main.yml also?
Yes! it worked for the tasks, thanks
The only thing were the handlers, they were triggered just once. So I added (at the end of the meta-task)
- meta: flush_handlers
And then they were ran twice but both with the parameters of the first role
Finally I had to add parametrize the handlers as explained here: https://github.com/ansible/ansible/issues/6312
`
`