I have a test ansible box setup (CentOS 6.6) in a lab environment (it has 
ansible installed for other to use if they desire, tinkering, etc.) but, I 
am working off my local machine generally. Interestingly enough, the 
ansible lab box has issues with being managed by Ansible, specifically yum:

I can connect to the system successfully:
cshort-mba:ansible chris.short$ ansible -i lab_inventory -m ping 
cld-lab0-ansible
cld-lab0-ansible | success >> {
    "changed": false,
    "ping": "pong"
}

It's a CentOS box; yum is there:
cshort-mba:ansible chris.short$ ansible -i lab_inventory -m shell -a "yum 
list updates" cld-lab0-ansible
cld-lab0-ansible | FAILED | rc=127 >>
/bin/sh: yum: command not found


And the yum module is borked:
cld-lab0-ansible | FAILED >> {
    "failed": true,
    "msg": "Traceback (most recent call last):\n  File 
\"/Users/chris.short/.ansible/tmp/ansible-tmp-1420830714.2-147668990743755/yum\",
 
line 27, in <module>\n    import yum\nImportError: No module named yum\n",
    "parsed": false
}

Any thoughts on what the issue(s) might be? Thanks in advance.

-- 
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/564f4dec-e2e9-4ba2-8762-7c97549433ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to