mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
cedfec763a
commit
1fe744d2af
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ def main():
|
|||
module.fail_json(msg="Cannot find apt-get")
|
||||
|
||||
p = module.params
|
||||
if p['package'] is None and p['update_cache'] != 'yes':
|
||||
if p['package'] is None and not p['update_cache']:
|
||||
module.fail_json(msg='pkg=name and/or update_cache=yes is required')
|
||||
|
||||
install_recommends = p['install_recommends']
|
||||
|
|
Loading…
Reference in a new issue