mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3379 from serenecloud/devel
Return a friendly error message if aptitude isn't installed
This commit is contained in:
commit
f4b1e426ea
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ def main():
|
||||||
global APT_GET_CMD
|
global APT_GET_CMD
|
||||||
APT_GET_CMD = module.get_bin_path("apt-get")
|
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
|
p = module.params
|
||||||
install_recommends = p['install_recommends']
|
install_recommends = p['install_recommends']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue