-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yum module will not confirm already installed group packages. #30933
Comments
Note that I manually removed the I can manually SSH to the target host and run Output after removing
|
@pmkuny Thanks for the bugreport, I am working on a fix. As a temporary workaround, would using the group "Virtualization" do the job? |
Running with
|
@pmkuny oh, just noticed that "Virtualization" is only available in the EPEL repo. |
@mkrizek Thanks. After installing epel-release, output is successful, is this a packaging problem on my end instead of the yum module?
|
@pmkuny No, this seems like a bug in the yum module. Hopefully the "epel workaround" will suffice for you until this is fixed :) |
@mkrizek No worries, just a testing system. :) Let me know if I can provide anything else to help |
This is definitely a bug. To easily replicate it use a task like: - name: install haproxy
yum:
name: "https://github.com/jsumners/haproxy-rhel7/releases/download/v{{haproxy_version.major}}/haproxy-jbs-{{haproxy_version.major}}-{{haproxy_version.release}}.el7.centos.x86_64.rpm"
state: present When the package is not already installed then that task will work correctly. On subsequent runs it gives the "does not update installed package" error. The only workaround I have for it right now is: - name: install haproxy
yum:
name: "https://github.com/jsumners/haproxy-rhel7/releases/download/v{{haproxy_version.major}}/haproxy-jbs-{{haproxy_version.major}}-{{haproxy_version.release}}.el7.centos.x86_64.rpm"
state: present
register: install_haproxy_result
failed_when: install_haproxy_result.rc != 0 and
'Nothing to do' not in install_haproxy_result.msg |
@jsummers Can you provide the exact version of the rpm? Also can you try with the latest devel if you still see the issue? Thanks! needs_info |
@mkrizek it's 1.7.9-1 at https://github.com/jsumners/haproxy-rhel7/releases I'm not going to have time to test it today. I might be able to get to it tomorrow, but you'd likely be better off running the task against your VM. |
I see this issue too, not for the group install but just installing a bunch of software packages and then re-running it again it's showing as failed. |
@pmkuny This issue is waiting for your response. Please respond or the issue will be closed. |
Sorry. I do not have the time to patch together an Ansible binary with PRs to test things. Please just use the information provided and a unit test to verify functionality. |
@pmkuny This issue is waiting for your response. Please respond or the issue will be closed. |
@pmkuny You have not responded to information requests in this issue so we will assume it no longer affects you. If you are still interested in this, please create a new issue with the requested information. |
moduleThis issue/PR relates to a module.
ISSUE TYPE
COMPONENT NAME
yum
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Ansible fails with an error message when trying to install a package group, citing that it doesn't exist. However, on the target machine, checking the group with the package manager shows that it does exist, and is installed:
STEPS TO REPRODUCE
Install package group on target host, then re-run playbook that would install same group on target host.
EXPECTED RESULTS
Expected Ansible to check that package group was installed and mark as "ok", changed: false
ACTUAL RESULTS
Ansible complains that the package group does not exist.
The text was updated successfully, but these errors were encountered: