From ea22a604e9924e3e95c4158ff5a4a31744c88e17 Mon Sep 17 00:00:00 2001 From: Walid Shouman Date: Mon, 18 Nov 2019 12:43:04 +0000 Subject: [PATCH] Add an example for proxy setting. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9a49840..4a8b0b3 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,25 @@ None. roles: - geerlingguy.docker ``` +Or use the following playbook with Proxy + +```yaml +- hosts: all + + vars: + http_proxy: http://user:password@proxy:port + https_proxy: http://user:password@proxy:port + no_proxy: localhost,127.0.0.0/8,192.168.0.0/16 + + roles: + - geerlingguy.docker + + environment: + http_proxy: "{{ http_proxy }}" + https_proxy: "{{ https_proxy }}" + no_proxy: "{{ no_proxy }}" +``` + ## License