Bug 1225762 - Can't install packages via ansible without yum-utils
Summary: Can't install packages via ansible without yum-utils
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-28 08:42 UTC by Nick Coghlan
Modified: 2015-06-09 15:14 UTC (History)
5 users (show)

Fixed In Version: ansible-1.9.1-2.fc22
Clone Of:
Environment:
Last Closed: 2015-06-09 15:14:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nick Coghlan 2015-05-28 08:42:27 UTC
By default, Ansible in Fedora 22 hits this problem with its dnf module: https://github.com/ansible/ansible-modules-extras/issues/471

The Ansible yum module can't be used either, as that attempts to import the yum *Python* API, which dnf doesn't even try to emulate.

This means that while this problem can be worked around if you have a way of bootstrapping yum-utils onto the system, you're stuck if you're using Ansible itself to do the bootstrapping.

Comment 1 Kevin Fenzi 2015-05-28 11:41:06 UTC
Yes, we are aware. ;) 

Toshio backported the fixes he has for the dnf module and pushed a rawhide build already. 

He was going to push builds to all other branches soon. 

You can in fact still use the yum module, but you of course need to install yum and yum-utils for that, and it has some corner cases. 

Look for an f22 update to test soon...

Comment 2 Fedora Update System 2015-05-29 18:39:26 UTC
ansible-1.9.1-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ansible-1.9.1-2.fc22

Comment 3 Toshio Ernie Kuratomi 2015-05-29 18:42:17 UTC
Hey Nick!  Please test that build (or one of the builds for the other Fedora/RHEL releases).  The person on the bug report didn't explicitly say this worked so I'd love to have some confirmation that this solves the problems.  Thanks!

Comment 4 Fedora Update System 2015-05-30 15:56:18 UTC
Package ansible-1.9.1-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ansible-1.9.1-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9219/ansible-1.9.1-2.fc22
then log in and leave karma (feedback).

Comment 5 Nick Coghlan 2015-06-02 08:19:34 UTC
Looks good here:

$ rpm -qa ansible
ansible-1.9.1-2.fc22.noarch

$ ansible localhost -m dnf -a "name=ansible state=latest"
localhost | success >> {
    "changed": false, 
    "msg": "", 
    "rc": 0, 
    "results": [
        "All packages providing ansible are up to date"
    ]
}

Comment 6 Fedora Update System 2015-06-09 15:14:47 UTC
ansible-1.9.1-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.