@ -21,6 +21,7 @@ version_added: historical
short_description : Manages packages with the I ( yum ) package manager
short_description : Manages packages with the I ( yum ) package manager
description :
description :
- Installs , upgrade , downgrades , removes , and lists packages and groups with the I ( yum ) package manager .
- Installs , upgrade , downgrades , removes , and lists packages and groups with the I ( yum ) package manager .
- This module only works on Python 2. If you require Python 3 support see the M ( dnf ) module .
options :
options :
name :
name :
description :
description :
@ -1339,9 +1340,9 @@ def main():
error_msgs = [ ]
error_msgs = [ ]
if not HAS_RPM_PYTHON :
if not HAS_RPM_PYTHON :
error_msgs . append ( ' python2 bindings for rpm are needed for this module ' )
error_msgs . append ( ' The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the `dnf` Ansible module instead. ' )
if not HAS_YUM_PYTHON :
if not HAS_YUM_PYTHON :
error_msgs . append ( ' python2 yum module is needed for this module ' )
error_msgs . append ( ' The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead. ' )
if error_msgs :
if error_msgs :
module . fail_json ( msg = ' . ' . join ( error_msgs ) )
module . fail_json ( msg = ' . ' . join ( error_msgs ) )