keyczart create --location=~/temp --purpose=crypt/home/test/PythonVirtualEnv/pyenv
):#!/bin/tcsh
source /home/ft2vwaa/PythonVirtualEnv/AnsibleEnv2/bin/activate.csh
python $argv[1]
- 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 - 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))