On Sunday, May 8, 2016 at 5:49:46 PM UTC-4, Dave Cottlehuber wrote:
>
> wintermute# ansible --version 
> ansible 2.0.2.0 
>
...... 

>     "ansible_facts": { 
>         "ansible_distribution": "FreeBSD", 
>

Running setup on 1.94 works.. running on 2.2.0 crashes against a FreeBSD 
machine, but works against an Ubuntu machine.
 

$ansible --version
ansible 2.2.0 (devel 848b015ce6) last updated 2016/05/08 11:39:41 (GMT -400)

$ansible -vvv -m setup lunap2.nsinf.net <-------- FreeBSD machine
Using /home/francisco/hg/natserv-sites/ansible.cfg as config file
<lunap2.nsinf.net> ESTABLISH SSH CONNECTION FOR USER: None
<lunap2.nsinf.net> SSH: EXEC ssh -C -q -o ControlMaster=auto -o 
ControlPersist=60s -o Port=2233 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10 -o 
ControlPath=/home/francisco/.ansible/cp/ansible-ssh-%h-%p-%r 
lunap2.nsinf.net '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo 
$HOME/.ansible/tmp/ansible-tmp-1462754932.56-132886504159744 `" && echo "` 
echo $HOME/.ansible/tmp/ansible-tmp-1462754932.56-132886504159744 `" )'"'"''
<lunap2.nsinf.net> PUT /tmp/tmp_mCHs5 TO 
/home/francisco/.ansible/tmp/ansible-tmp-1462754932.56-132886504159744/setup
<lunap2.nsinf.net> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o 
ControlPersist=60s -o Port=2233 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10 -o 
ControlPath=/home/francisco/.ansible/cp/ansible-ssh-%h-%p-%r 
'[lunap2.nsinf.net]'
<lunap2.nsinf.net> ESTABLISH SSH CONNECTION FOR USER: None
<lunap2.nsinf.net> SSH: EXEC ssh -C -q -o ControlMaster=auto -o 
ControlPersist=60s -o Port=2233 -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o ConnectTimeout=10 -o 
ControlPath=/home/francisco/.ansible/cp/ansible-ssh-%h-%p-%r -tt 
lunap2.nsinf.net '/bin/sh -c '"'"'LANG=C LC_ALL=C LC_MESSAGES=C 
/usr/local/bin/python 
/home/francisco/.ansible/tmp/ansible-tmp-1462754932.56-132886504159744/setup; 
rm -rf 
"/home/francisco/.ansible/tmp/ansible-tmp-1462754932.56-132886504159744/" > 
/dev/null 2>&1'"'"''
lunap2.nsinf.net | FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_name": "setup"
    }, 
    "module_stderr": "", 
    "module_stdout": "Traceback (most recent call last):\r\n  File 
\"/tmp/ansible_EiQL5i/ansible_module_setup.py\", line 127, in <module>\r\n 
   main()\r\n  File \"/tmp/ansible_EiQL5i/ansible_module_setup.py\", line 
119, in main\r\n    data = get_all_facts(module)\r\n  File 
\"/tmp/ansible_EiQL5i/ansible_modlib.zip/ansible/module_utils/facts.py\", 
line 3240, in get_all_facts\r\n  File 
\"/tmp/ansible_EiQL5i/ansible_modlib.zip/ansible/module_utils/facts.py\", 
line 3184, in ansible_facts\r\n  File 
\"/tmp/ansible_EiQL5i/ansible_modlib.zip/ansible/module_utils/facts.py\", 
line 189, in __init__\r\n  File 
\"/tmp/ansible_EiQL5i/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


$ansible -m setup cas1.nsinf.net |grep distribution  <-------- Ubuntu 
machine
        "ansible_distribution": "Ubuntu", 
        "ansible_distribution_major_version": "14", 
        "ansible_distribution_release": "trusty", 
        "ansible_distribution_version": "14.04", 



$ansible --version
ansible 1.9.4 (stable-1.9 4472889632) last updated 2015/10/25 18:37:06 (GMT 
-400)

$ansible -m setup lunap2.nsinf.net|grep distribution <-------- FreeBSD 
machine - exact same FreeBSD machine that crashes with 2.2.0
        "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", 

-- 
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/60e11b27-698a-4c8b-95d7-f77160b32a93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to