Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add use_torsocks role variable #3

Open
david415 opened this issue Aug 6, 2014 · 1 comment
Open

add use_torsocks role variable #3

david415 opened this issue Aug 6, 2014 · 1 comment

Comments

@david415
Copy link
Owner

david415 commented Aug 6, 2014

This role variable should case the role to use torsocks (usewithtor) whenever possible to install things; for example:

usewithtor apt-get install PackageName
or
usewithtor pip install PythonPackageName

If use_torsocks is set to "no" then the appropriate ansible module should be used to install the package...

Perhaps use_torsocks should have a default value of "yes" set in the defaults section of the role.

@leewoboo
Copy link
Contributor

leewoboo commented Aug 6, 2014

for instance, the task to pip install obfsproxy with usewithtor would be:

  • name: ensure obfsproxy is pip installed in our python virtual env when use_torsocks
    shell: "usewithtor pip install {{ tor_obfsproxy_git_url }}"
    environment:
    PIP_DOWNLOAD_CACHE: "{{ tor_obfsproxy_home }}/.pip_download_cache"
    VIRTUAL_ENV: "{{ tor_obfsproxy_home }}/{{ tor_obfsproxy_virtenv }}"
    PATH: "{{ tor_obfsproxy_home }}/{{ tor_obfsproxy_virtenv }}/bin:{{ ansible_env.PATH }}"
    when: use_torsocks is defined and use_torsocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants