mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-21 17:51:38 +02:00
Add an example for proxy setting.
This commit is contained in:
parent
817285395e
commit
ea22a604e9
19
README.md
19
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user