mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-26 17:51:03 +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:
|
roles:
|
||||||
- geerlingguy.docker
|
- 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
|
## License
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user