diff options
author | B Stack <bgstack15@gmail.com> | 2017-03-13 13:41:59 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-03-13 13:41:59 -0400 |
commit | bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00 (patch) | |
tree | cabf7d9b887bc9c4c5f2f2d6574d127fe6670b4c /readme.txt | |
download | ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.tar.gz ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.tar.bz2 ansible-ssh-tunnel-for-proxy-bb4ab4dec95b9dc2a33b196f8d973c81c0f5fc00.zip |
Diffstat (limited to 'readme.txt')
-rw-r--r-- | readme.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..a310954 --- /dev/null +++ b/readme.txt @@ -0,0 +1,27 @@ +# File: /etc/ansible/roles/use-proxy/readme.txt + +# Overview +This ansible role, use-proxy, is designed to make it easier for ansible to set up a reverse ssh tunnel to a host that is running a web proxy, for tasks to use that proxy. + +# How to configure +Check out vars/main.yml and update these values: + +proxy_port: 3128 +local_proxy_port: "{{proxy_port}}" +proxy_server: tunnel@server@example.net +proxy_server_ssh_port: 22 + +# Dependencies +* An available ssh host that also provides a web proxy, such as apache with a proxy config or squid. +* Automatic ssh authentication to that server. You can use anything that provides this, but ssh keys is the easiest. + +# How to use in a playbook +Just comment the - use-proxy item in the roles list to exclude the proxy. +--- +- name: Playbook that uses an ssh tunnel for http_proxy + hosts: test + remote_user: root + environment: "{{ proxy_env | default(omit) }}" + roles: + - use-proxy + - example |