Hi guys,

unfortunately I'm on REHL6 without the option to install python packages 
for the standard python installation. Thus I'm using Ansible from an 
virtualenv on the managing node. That works fine, except that now I'm 
running into performance issues.

The virtualenv sits on a nfs share which is mounted to all nodes. Thus it 
is available on all nodes.

python-keyczar is installed in the virtualenv and seems to work. At least 
the following command runs from within the virtualenv

keyczart create --location=~/temp --purpose=crypt

Now I've created a wrapper script for the custom python interpreter (/home/
test/PythonVirtualEnv/pyenv
):

#!/bin/tcsh

source /home/ft2vwaa/PythonVirtualEnv/AnsibleEnv2/bin/activate.csh

python $argv[1]


and I can use it as custom interpreter, e.g.:

- hosts: logstash
  name: Source virtual env
  remote_user: "{{ test_remote_user }}"
  vars:
    ansible_python_interpreter: /home/test/PythonVirtualEnv/pyenv
  tasks:
  - name: check
    shell: echo $VIRTUAL_ENV
    register: out
  - debug: var=out.stdout_lines 

This prints out the virtualenv as expected. So it is actually loaded.

But adding the accelerate mode directive results in an error.

- hosts: logstash
  name: Source virtual env
  remote_user: "{{ ipf_remote_user }}"
  accelerate: true
  vars:
    ansible_python_interpreter: /home/ft2vwaa/PythonVirtualEnv/pyenv
  tasks:
  - name: check
    shell: echo $VIRTUAL_ENV
    register: out
  - debug: var=out.stdout_lines 


GATHERING FACTS 
***************************************************************
fatal: [server_01] => Failed to launch the accelerated daemon on server_01 (
reason: keyczar is not installed (on the remote side))
fatal: [server_02] => Failed to launch the accelerated daemon on server_02 (
reason: keyczar is not installed (on the remote side))


Any ideas or suggestions are highly welcome.

Cheers,

Jan



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9e6dc9bf-37c2-400b-bbc0-b5e4770869aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to