From 72d3aab736daf64ac595299501f3d6480c361dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannig=20Perr=C3=A9?= Date: Sun, 20 Mar 2016 14:33:32 +0100 Subject: [PATCH] Add an example of extra_hosts option. --- lib/ansible/modules/cloud/docker/docker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 1015a5824b5..e342d3f0c8c 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -450,6 +450,7 @@ EXAMPLES = ''' # on the host. # - bind UDP port 9001 within the container to port 8081 on the host, only # listening on localhost. +# - specify 2 ip resolutions. # - set the environment variable SECRET_KEY to "ssssh". - name: application container @@ -465,6 +466,9 @@ EXAMPLES = ''' ports: - "8080:9000" - "127.0.0.1:8081:9001/udp" + extra_hosts: + host1: "192.168.0.1" + host2: "192.168.0.2" env: SECRET_KEY: ssssh