-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Bug report: dnf module and async tasks fail #11235
Comments
Possible MisunderstandingHi! Thanks very much for your submission to Ansible. It sincerely means a lot to us. We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated.
In the future, this might be a topic more well suited for the user list, which you can also post here if you'd like some more help with the above. Thank you once again for this and your interest in Ansible! |
As a side note to this -- a few package related modules (yum and apt) have a special optimization pass inside of ansible so that with_* for package names gets turned into a comma separated string of packages that is passed to the module. This is probably why yum works and dnf doesn't. I'll add dnf to that optimization pass now. As a workaround you can use a comma separated string here instead of with_items like either of these two examples:
|
Thanks abadger! |
…dules for which we squash. Fixes #11235
And added to the stable-1.9 branch as well as devel so that it will go out in the next release: 4a5a8ed |
Thanks abadger! Great work! |
Issue Type:
Bug report
error:
fatal: [default] => lookup plugins (with_*) cannot be used with async tasks
Ansible version: 1.9.1
OS target machine: Fedora 22.
We replaced the yum in our playbooks with dnf and ran into above error.
Example:
Just installed the machine with fedora 21, ran the exact same task with yum and this finishes correctly.
The text was updated successfully, but these errors were encountered: