Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakowski authored and gundalow committed Feb 18, 2019
1 parent 6ae0401 commit 61743ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/ansible/modules/packaging/os/urpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,20 +208,14 @@ def main():

p = module.params

force_yes = p['force']
no_recommends_yes = p['no_recommends']
root = p['root']

if p['update_cache']:
update_package_db(module)

packages = p['package']

if p['state'] in ['installed', 'present']:
install_packages(module, packages, root, force_yes, no_recommends_yes)
install_packages(module, p['name'], p['root'], p['force'], p['no_recommends'])

elif p['state'] in ['removed', 'absent']:
remove_packages(module, packages, root)
remove_packages(module, p['name'], p['root'])


if __name__ == '__main__':
Expand Down

0 comments on commit 61743ab

Please sign in to comment.