From dab7305d3b754256f90f524dcd810e9cf8d48e1f Mon Sep 17 00:00:00 2001 From: KIKUCHI Koichiro Date: Wed, 22 Jul 2015 19:10:05 +0900 Subject: [PATCH] Fix service enabled check failure on FreeBSD --- lib/ansible/modules/system/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):