Ansible 2.5.0 { "changed": false, "cmd": "None -s system-product-name", "msg": "[Errno 2] No such file or directory

I just updated Ansible to version 2.5.0 tonight, and I came across this issue when I tried to run a playbook for an Ubuntu 16.04 machine: PLAY [Ansible Playbook for configuring odroid.***.com] *************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************** fatal: [odroid.***.com]: FAILED! => {"changed": false, "cmd": "None -s system-product-name", "msg": "[Errno 2] No such file or directory: 'None'", "rc": 2} According to the issue #37911, the remote system doesn’t have the dmidecode package installed....

March 31, 2018 · 1 min · 150 words · kenno

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