On Sun, 8 May 2016, at 22:17, Johannes Kastl wrote:
> On 08.05.16 17:58 Francisco Reyes wrote:
> 
> > \"/tmp/ansible_qm7eFt/ansible_modlib.zip/ansible/module_utils/facts.py\", 
> > line 357, in get_service_mgr_facts\r\nKeyError: 'distribution'\r\n", "msg": 
> > "MODULE FAILURE", "parsed": false}
> 
> Does a FreeBSD machine provide a 'distribution' variable in its facts?
> 
> ansible -m setup freebsd-machine |grep distribution
> 
> I do not know why this should have changed from 1.9 to 2.x, just a
> guess...
> 
> Johannes

wintermute# ansible --version
ansible 2.0.2.0
  config file = 
  configured module search path = Default w/o overrides

wintermute# ansible -m setup localhost, -a
'filter=ansible_distribution*'
 [WARNING]: Host file not found: /usr/local/etc/ansible/hosts

localhost | SUCCESS => {
    "ansible_facts": {
        "ansible_distribution": "FreeBSD", 
        "ansible_distribution_release": "10.3-RELEASE-p2", 
        "ansible_distribution_version": "FreeBSD 10.3-RELEASE-p2 #0: Wed
        May  4 06:03:51 UTC 2016    
        [email protected]:/usr/obj/usr/src/sys/GENERIC"
    }, 
    "changed": false
}

This is what I'd expect to see in your case. You may want to read up the
debugging sections of ansible docs and see if you can see anything
specifically different. I'd also confirm using -vvv that the ssh command
used works as expected.

A+
Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1462744175.958139.601683785.5C9EE985%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to