New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notify is silently ignored on import_tasks #64935
Comments
Files identified in the description: If these files are inaccurate, please update the |
notify is not valid import_tasks attribute. Raise an error when user specifies it. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
notify is not valid import_tasks attribute. Raise an error when user specifies it. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
notify is not valid import_tasks attribute. Raise an error when user specifies it. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Hi, In my environments this issue appears using Ansible version 2.8.2, 2.8.7, 2.9.1. In Ansible 2.6.5 is working correctly, the handler is executed correctly:
Using the other versions:
I try to use: import_tasks, include_tasks, etc, without no luck. I've been trying to find a workaround but I haven't got it. When will this bug be fixed? It's very important. I cannot use ansible branch master in production. Regards, |
@cesarjorgemartinez It seems like you may be having a different issue. There isn't different behavior on 2.6.5 using the reproducer in this ticket. Adding this feature would be a significant change to how imports/includes fundamentally work and would probably need to go through the proposal process if it was something we wanted to add. |
notify is not valid import_tasks attribute. Raise an error when user specifies it. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Then, I create a new issue? Exist multiple issues related with handler execution, and this is the closest one I've found |
@cesarjorgemartinez Yes, create a new issue with a simple reproducer for the behavior you're seeing. From the brief excerpt it looks like you're having a problem with the conditional on your handler rather than a problem with notify being ignored. |
I don't see a conditional in above handler... |
imports do not work like tasks, and they do not have an association between the |
Files identified in the description: If these files are incorrect, please update the |
The one thing that always bugs me the most when using Ansible is the fact that Ansible fails to report errors when doing something that is not supported. Over the years, Ansible could have saved us a lot of headaches if it would just fail early (or report something at all) if the playbook contains unsupported constructs. |
There was some effort recently to make options on some statements like this report warnings or errors instead of being silently ignored. I would not be opposed to adding this as well to avoid confusion in the future. |
Raise an error or a warning when user specifies parameters which are not supported by import_tasks. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Raise an error or a warning when user specifies parameters which are not supported by import_tasks. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Raise an error or a warning when user specifies parameters which are not supported by import_tasks. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Raise an error or a warning when user specifies parameters which are not supported by import_tasks. Fixes: ansible#64935 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
notify
is silently ignored onimport_tasks
.This leads to unexpected behavior.
ISSUE TYPE
COMPONENT NAME
import_tasks
ANSIBLE VERSION
STEPS TO REPRODUCE
ansible-playbook test.yml -c local -l localhost
test.yml:
tasks.yml:
EXPECTED RESULTS
An error is printed similar to the one for
include_tasks
, i.e.ACTUAL RESULTS
The notify attribute is ignored.
The text was updated successfully, but these errors were encountered: