+++ This bug was initially created as a clone of Bug #1487082 +++ Description of problem: Ansible caching ovirt-ansible-modules so sometimes they are not loaded from role's library For example: When user will use role/module for managing hosts (ovirt-hosts module or ovirt-infra role) it take the module from: /usr/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/ovirt_hosts.py after in the same playbook when user will use role with this module included in library folder (/usr/share/ansible/roles/ovirt-cluster-upgrade/library/ovirt_hosts.py), the module in library will be ignored because this module is already cached. Version-Release number of selected component (if applicable): ansible-2.3.1.0-3.el7.noarch ovirt-ansible-roles-1.0.1-1.el7ev.noarch How reproducible: Always Steps to Reproduce: 1. run infra role and host upgrade role in same playbook Actual results: affected all modules in library folders (user can run ansible module before role)
As seen from attached github issues, the fix for that issue from reverted from Ansible source codes, because it broke tests. But even when it was reverted, the original issue is closed as fixed. Currently this is affecting Ansible roles, which we are shipping within RHV, but it's common issue and can be affecting all Red Hat products which contains Ansible roles with updated modules inside
Created upstream https://github.com/ansible/ansible/issues/36028 to track it
ansible was deprecated in RHEL Extras, see bz1533106 and https://access.redhat.com/articles/3359651. Please track it upstream and/or in the Ansible Engine bugzilla product.