debops / ansible-fail2ban

Install and configure fail2ban service
GNU General Public License v3.0
38 stars 14 forks source link

Fail2ban reload not working on first run #11

Closed sylvainar closed 7 years ago

sylvainar commented 7 years ago

Hey !

I'm deploying fail2ban with Ansible on my Debian 8 VPS, everything works perfectly, but fail2ban installation throws an error, stopping my ansible script :

RUNNING HANDLER [debops.fail2ban : Reload fail2ban] ****************************

fatal: [vps344828.ovh.net]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to reload service fail2ban: Failed to reload fail2ban.service: Job type reload is not applicable for unit fail2ban.service.\n"}

When I launched the script one more time, it works without errors. The issue is that I need to launch twice and I don't know why.

Can you please help me on this ?

Thanks a lot !

drybjed commented 7 years ago

Are you sure that you are using the current version of the role? In the master branch there's no "Reload fail2ban" handler. If you use the version from Ansible Galaxy, I suspect that it's time for a release. Can you confirm?

sylvainar commented 7 years ago

You're right, the CHANGES.rst is set on v0.1.0

I'll switch on the github version. Are you planning on releasing on Ansible Galaxy?

Thanks for your work!

drybjed commented 7 years ago

@sylvainar Done, the new version is now on Ansible Galaxy.

sylvainar commented 7 years ago

Great, thanks !