Two new things on the devel branch of interest to people with EL 5
hosts, or anywhere else where Python isn't 2.5 yet.
(1)
The raw module, added by Adrià Casajús, has been merged in. This
allows direct SSH communication with hosts without using an Ansible
module, and is of course therefore reliant on the user's shell and so
forth.
This is primarily usable in the case where you have a RHEL5/CentOS 5
host and want to use Ansible with it. Before you can run a playbook
you could fix them up like so:
ansible all -m raw -a "yum install python-simplejson"
It's also useful for talking to routers and load balancers or whatever
that don't have Python installed.
(2)
The template, copy, and file modules can all now work without any JSON
dependencies.
If you need to set up EPEL first to get python-simplejson, you can
also use the 'template' or 'copy' modules now first, because the file
module no longer requires any JSON. I think that's pretty awesome, as
we're now self bootstrapping for legacy hosts!
ansible all -m copy -a "src=/wherever/epel.repo dest=/etc/yum.repos.d/epel"
ansible all -m raw - a "yum install python-simplejson"
Docs section on this coming soon.
Generally any module that does not need to return simple json can be
made to not have a dependency on JSON, but it's WAY too useful to be
able to return complex data such that I don't intend to really port
any additional modules to work this way. This is primarily there as
instructions on how to get old hosts ready to use Ansible, and we'll
document it that way.