mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Change all packages at once in yum_versionlock module
This commit is contained in:
parent
76d9fe4ec6
commit
7ddc3d58f0
1 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ def main():
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
changed = True
|
changed = True
|
||||||
continue
|
continue
|
||||||
changed = yum_v.ensure_state(single_pkg, command)
|
changed = yum_v.ensure_state(packages, command)
|
||||||
elif state in ('absent'):
|
elif state in ('absent'):
|
||||||
command = 'delete'
|
command = 'delete'
|
||||||
for single_pkg in packages:
|
for single_pkg in packages:
|
||||||
|
@ -136,7 +136,7 @@ def main():
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
changed = True
|
changed = True
|
||||||
continue
|
continue
|
||||||
changed = yum_v.ensure_state(single_pkg, command)
|
changed = yum_v.ensure_state(packages, command)
|
||||||
|
|
||||||
module.exit_json(
|
module.exit_json(
|
||||||
changed=changed,
|
changed=changed,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue