1
0
Fork 0
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:
Brian Coca 2017-02-06 14:51:37 -05:00
parent 65e55d47b1
commit 8d17055831

View file

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