Some ansible commands require external libraries, like: http://docs.ansible.com/redis_module.html Requires the redis-py Python package on the remote host. http://docs.ansible.com/postgresql_db_module.html This module uses psycopg2, a Python PostgreSQL database adapter. Would be nice if we could add USEs and the corresponding deps. Maybe easy ones like redis and postgres for starters.
--- /usr/portage/app-admin/ansible/ansible-1.8.4.ebuild 2015-02-20 08:46:57.000000000 +0100 +++ ansible-1.8.4-r1.ebuild 2015-03-13 11:59:16.517301179 +0100 @@ -15,12 +15,15 @@ LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86 ~x64-macos" +IUSE="postgres redis" RDEPEND=" dev-python/jinja[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] net-misc/sshpass virtual/ssh + postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) " python_install_all() {
The libs are needed on the client side, so this would only help locally deployed stuff, can be ommited.