Skip to content
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

[Bug] Reload handler fails because previous restart handler is still restarting the service #5

Closed
justin-p opened this issue Mar 14, 2024 · 0 comments · Fixed by #6
Closed
Assignees
Labels
bug Something isn't working

Comments

@justin-p
Copy link
Contributor

justin-p commented Mar 14, 2024

Hi @kazauwa.

When deploying the role it fails on the first run. The cause seems that the 'Reload headscale' handler runs while the service is still restarting from the previous handler.

---
- name: Run 'kazauwa.headscale'-role
  ansible.builtin.include_role:
    name: kazauwa.headscale
  vars:
    headscale_config_template: headscale.yaml.j2
RUNNING HANDLER [kazauwa.headscale : Restart headscale service] ****
changed: [eminent-wahoo-sh2f1]

RUNNING HANDLER [kazauwa.headscale : Reload headscale] ****
fatal: [eminent-wahoo-sh2f1]: FAILED! => {"changed": false, "msg": "Unable to reload service headscale: headscale.service is not active, cannot reload.\n"}

As a workround i've replaced the 'Reload headscale' handler with the 'Restart headscale service' in the configure.yml file.

@kazauwa kazauwa added the bug Something isn't working label Mar 15, 2024
@kazauwa kazauwa linked a pull request Mar 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants