error out if systemctl isn't present
This commit is contained in:
parent
65e55d47b1
commit
8d17055831
1 changed files with 1 additions and 1 deletions
|
@ -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']:
|
||||
|
|
Loading…
Reference in a new issue