You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On distros that have moved to dnf as the default package manager over yum (like Fedora 22, Fedora 23), the role fails with a yum import error.
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1453913472.43-6655968565982/yum", line 27, in <module>
import yum
ImportError: No module named yum
The right way to fix this is to use the package Ansible role, which supports both yum and dnf. That came out in Ansible 2.0, which was very recently released but hasn't yet been packaged and distributed as an RPM. The could be fixed by moving to the dnf Ansible module, but that would break yum distros like CentOS 7. Could add some conditional to the tasks, but that's hack.
For now we'll target CentOS 7 over F22/F23 and move to the package module once it's out.
The text was updated successfully, but these errors were encountered:
Currently fails because ansible-opendaylight expects yum vs dnf.
Fix is to move to the `package` Ansbile module after Ansible 2.0 is
available.
dfarrell07/ansible-opendaylight#19
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
When moving from the yum module to the package module as a part of #22
and #19, the `update_cache` param became deprecated.
Deployments against Fedora 23 now work.
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
On distros that have moved to dnf as the default package manager over yum (like Fedora 22, Fedora 23), the role fails with a yum import error.
The right way to fix this is to use the
package
Ansible role, which supports both yum and dnf. That came out in Ansible 2.0, which was very recently released but hasn't yet been packaged and distributed as an RPM. The could be fixed by moving to thednf
Ansible module, but that would break yum distros like CentOS 7. Could add some conditional to the tasks, but that's hack.For now we'll target CentOS 7 over F22/F23 and move to the package module once it's out.
The text was updated successfully, but these errors were encountered: