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.