Fedora 23: Ansible util.am_i_root():NameError: global name 'util' is not defined

If you see a similar error message as the following when running Ansible on a Fedora 23 machines, there is an easy fix. It is very likely that a package “python2-dnf” is missing. This package is required for Python script to interact with DNF package manager. There is a good article available at fedoramagazine.org about running Ansible on Fedora 23. (I only found this later, and it’s very informative.)

February 28, 2016 · 1 min · 69 words · kenno