diff options
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 |