Ok, right after I wrote an update - I was able to reproduce the issue. For that, I had to swap curl-minimal that's being installed in my image with curl, and then run a sample and easy playbook:
Running dnf install directly does not result in any issues:
[root@server-1128-0945 openstack-ansible]# dnf install /usr/bin/curl
Last metadata expiration check: 2:33:20 ago on Thu Dec 28 12:18:50 2023.
Package curl-7.76.1-26.el9_3.2.0.1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@server-1128-0945 openstack-ansible]#
However running the playbook does:
TASK [package] *****************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: problem with installed package curl-7.76.1-26.el9_3.2.0.1.x86_64\n - package curl-minimal-7.76.1-26.el9_3.2.0.1.x86_64 conflicts with curl provided by curl-7.76.1-26.el9_3.2.0.1.x86_64\n - conflicting requests", "rc": 1, "results": []}
Running `dnf swap curl curl-minimal` does solve the issue though
Ok, right after I wrote an update - I was able to reproduce the issue. For that, I had to swap curl-minimal that's being installed in my image with curl, and then run a sample and easy playbook:
- hosts: localhost
tasks:
- package:
name: /usr/bin/curl
state: present
[root@server- 1128-0945 openstack-ansible]# rpm -qa | grep curl minimal- 7.76.1- 26.el9_ 3.2.0.1. x86_64 76.1-26. el9_3.2. 0.1.x86_ 64 1128-0945 openstack-ansible]#
libcurl-
curl-7.
[root@server-
Running dnf install directly does not result in any issues: 1128-0945 openstack-ansible]# dnf install /usr/bin/curl 76.1-26. el9_3.2. 0.1.x86_ 64 is already installed. 1128-0945 openstack-ansible]#
[root@server-
Last metadata expiration check: 2:33:20 ago on Thu Dec 28 12:18:50 2023.
Package curl-7.
Dependencies resolved.
Nothing to do.
Complete!
[root@server-
However running the playbook does:
TASK [package] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* **** 76.1-26. el9_3.2. 0.1.x86_ 64\n - package curl-minimal- 7.76.1- 26.el9_ 3.2.0.1. x86_64 conflicts with curl provided by curl-7. 76.1-26. el9_3.2. 0.1.x86_ 64\n - conflicting requests", "rc": 1, "results": []}
fatal: [localhost]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: problem with installed package curl-7.
Running `dnf swap curl curl-minimal` does solve the issue though