mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Migrate apt_repository, group, and supervisorctl to use module.get_bin_path
This commit is contained in:
@@ -52,7 +52,9 @@ def main():
|
||||
name = module.params['name']
|
||||
state = module.params['state']
|
||||
|
||||
SUPERVISORCTL = _find_supervisorctl()
|
||||
SUPERVISORCTL = module.get_bin_path('supervisorctl')
|
||||
if SUPERVISORCTL is None:
|
||||
module.fail_json(msg='supervisorctl is not installed')
|
||||
|
||||
if SUPERVISORCTL is None:
|
||||
module.fail_json(msg='supervisorctl is not installed')
|
||||
|
||||
Reference in New Issue
Block a user