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']: