diff --git a/plugins/modules/apt_rpm.py b/plugins/modules/apt_rpm.py index 2b5190eb867..007547ddc83 100644 --- a/plugins/modules/apt_rpm.py +++ b/plugins/modules/apt_rpm.py @@ -126,6 +126,7 @@ def update_package_db(module): return out + def clean(module): rc, out, err = module.run_command("%s clean" % APT_PATH) @@ -134,6 +135,7 @@ def clean(module): return "Cleaned\n" + def upgrade(module): rc, out, err = module.run_command("%s -y dist-upgrade" % APT_PATH) @@ -142,6 +144,7 @@ def upgrade(module): return out + def remove_packages(module, packages): remove_c = 0 @@ -195,7 +198,7 @@ def main(): state=dict(type='str', default='present', choices=['absent', 'installed', 'present', 'removed']), update_cache=dict(type='bool', default=False), clean=dict(type='bool', default=False), - upgrade=dict(type='bool', default=False), + upgrade=dict(type='bool', default=False, aliases=['dist-upgrade']), package=dict(type='list', elements='str', aliases=['name', 'pkg']), ), )