This appears to be fine, but as you say this is only the role.
This indicates that issue is elsewhere, for instance in the calling playbook.
Can you share that?

On Wed, 12 Jun 2019 at 17:47, [email protected]
<[email protected]> wrote:
>
> I have really simple role, in which I have these tasks:
>
> ---
>
> - name: Download the app artifact from s3 bucket
>   aws_s3:
>     bucket: "my-bucket"
>     object: "/my-artifact.tar.gz"
>     mode: get
>     dest: "my-artifact.tar.gz"
>   notify:
>     - Restart App
>
>
> - name: Unarchive the tar file
>   unarchive:
>     src: "my-artifact.tar.gz"
>     dest: "/app-dir"
>
>
>
>
> - name: Copy the templates to desired locations
>   template:
>     src:  "my-app.j2"
>     dest: "/app-dir/my-app.config"
>   notify:
>     - Restart App
>
>
> - meta: flush_handlers
>
>
> - Some other tasks
>
>
> Here is my simple handler:
> ---
> - name: Restart App
>   systemd:
>     name: "my-app"
>     state: restarted
>
>
> but at the meta step I am getting this warning:
>
> [WARNING]: flush_handlers task does not support when conditional
>
>
> It was working fine until, 2.5.x but getting this warning after upgrading to 
> 2.7/2.8, I didn't have any when condition.
>
> any help will be highly appreciated
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/d4bcf3db-18e2-4339-9475-c38cbc4b007d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMy5N5X79ji4omKXS_NFadkSThCuvAjEoL9PAjS2FezOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to