mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Return a friendly error message if aptitude isn't installed
This commit is contained in:
@@ -286,6 +286,9 @@ def main():
|
||||
global APT_GET_CMD
|
||||
APT_GET_CMD = module.get_bin_path("apt-get")
|
||||
|
||||
if not APTITUDE_CMD:
|
||||
module.fail_json(msg="Could not find aptitude. Please ensure it is installed.")
|
||||
|
||||
p = module.params
|
||||
install_recommends = p['install_recommends']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user