mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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