In 1.8.0 version, If I didn't pass "ports" variable, Docker module will not 
bind any port to the Docker Host. It worked correctly.
However, In 1.9.0.1, Docker module choose a random ports, and bind to 
Docker Host. I think there is something wrong. Please correct me if I 
wrong. 
If I remove this line (  ports: "{{ docker_ports|default(omit) }}" ) , the 
docker module works correctly.


```
  - name: Run docker container
     docker:
       image: "{{ docker_image }}"
       name: "{{ docker_name }}"
       command: "{{ docker_command|default(omit) }}"
       ports: "{{ docker_ports|default(omit) }}"
       env: "{{ docker_env|default(omit) }}"
       volumes: "{{ docker_volumes|default(omit) }}"
```

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4d2245cb-4360-4d3e-89b3-85258779ccc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to