diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 6df342cba4a..60d4838cf22 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -988,7 +988,7 @@ class FreeBsdService(Service): try: return self.service_enable_rcconf() - except: + except Exception: self.module.fail_json(msg='unable to set rcvar') def service_control(self):