mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
bbaf803227
commit
769ee61f66
1 changed files with 2 additions and 2 deletions
|
@ -421,7 +421,7 @@ def main():
|
||||||
update_cache = dict(default=False, aliases=['update-cache'], type='bool'),
|
update_cache = dict(default=False, aliases=['update-cache'], type='bool'),
|
||||||
cache_valid_time = dict(type='int'),
|
cache_valid_time = dict(type='int'),
|
||||||
purge = dict(default=False, type='bool'),
|
purge = dict(default=False, type='bool'),
|
||||||
package = dict(default=None, aliases=['pkg', 'name']),
|
package = dict(default=None, aliases=['pkg', 'name'], type='list'),
|
||||||
deb = dict(default=None),
|
deb = dict(default=None),
|
||||||
default_release = dict(default=None, aliases=['default-release']),
|
default_release = dict(default=None, aliases=['default-release']),
|
||||||
install_recommends = dict(default='yes', aliases=['install-recommends'], type='bool'),
|
install_recommends = dict(default='yes', aliases=['install-recommends'], type='bool'),
|
||||||
|
@ -511,7 +511,7 @@ def main():
|
||||||
install_recommends=install_recommends,
|
install_recommends=install_recommends,
|
||||||
force=force_yes, dpkg_options=p['dpkg_options'])
|
force=force_yes, dpkg_options=p['dpkg_options'])
|
||||||
|
|
||||||
packages = p['package'].split(',')
|
packages = p['package']
|
||||||
latest = p['state'] == 'latest'
|
latest = p['state'] == 'latest'
|
||||||
for package in packages:
|
for package in packages:
|
||||||
if package.count('=') > 1:
|
if package.count('=') > 1:
|
||||||
|
|
Loading…
Reference in a new issue