From 8d1705583153a2cbcf282bb42601e83a44632990 Mon Sep 17 00:00:00 2001
From: Brian Coca <brian.coca+git@gmail.com>
Date: Mon, 6 Feb 2017 14:51:37 -0500
Subject: [PATCH] error out if systemctl isn't present

---
 lib/ansible/modules/system/systemd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py
index 704ba19c22a..6372c184c61 100644
--- a/lib/ansible/modules/system/systemd.py
+++ b/lib/ansible/modules/system/systemd.py
@@ -271,7 +271,7 @@ def main():
         required_one_of=[['state', 'enabled', 'masked', 'daemon_reload']],
         )
 
-    systemctl = module.get_bin_path('systemctl')
+    systemctl = module.get_bin_path('systemctl', True)
     if module.params['user']:
         systemctl = systemctl + " --user"
     if module.params['no_block']: