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
handlers not fired when using roles #83172
Comments
Files identified in the description: If these files are incorrect, please update the |
@Mapel88 |
upgraded to 2.15.3 - issue persists |
By default the handlers should run after the |
They should also should run when using "notify", but they don't... |
Please provide a minimal self-contained reproducer that we can copy&paste, run and see the issue you are describing. The provided reproducer appears to be doing unrelated things and does not seem to be complete. Without that there is nothing we can do here outside of guessing. |
Yes but not immediately. See the link to documentation @s-hertel posted. |
ok then i misunderstood the usage. i thought notify will immediately trigger the handler. thanks for clarifying. |
Summary
I have a role with handlers, but they doesn't seem to fire on change.
The files were changed but there is no indication for handlers being executed and the services were not restarted:
Am i missing something?
Do I need to include the handlers anywhere?
According to the documentation handlers should be included automatically from handlers/main.yaml.. so not sure what's the issue..
Issue Type
Bug Report
Component Name
ansible handlers
Ansible Version
Configuration
OS / Environment
Red Hat Enterprise Linux release 8.8 (Ootpa)
Steps to Reproduce
role/handlers/main.yaml:
role/tasks/main.yaml
role/tasks/saltmaster/salt.yaml
I also tried the following syntax for handlers which also doesn't work:
my playbook:
Expected Results
expected services salt-minion and salt-master to be restarted
Actual Results
The text was updated successfully, but these errors were encountered: