1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Updating version_added for docker net param and adding an example

This commit is contained in:
James Cammarata 2014-08-08 13:16:08 -05:00
parent 1051748ba0
commit 4a08aac2cb

View file

@ -185,11 +185,11 @@ options:
version_added: "1.6"
net:
description:
- Set Network mode for the container (bridge, none, container:<name|id>, host)
- Set Network mode for the container (bridge, none, container:<name|id>, host). Requires docker >= 0.11.
required: false
default: false
aliases: []
version_added: "1.11"
version_added: "1.8"
author: Cove Schneider, Joshua Conner, Pavel Antonov
requirements: [ "docker-py >= 0.3.0", "docker >= 0.10.0" ]
'''
@ -300,6 +300,14 @@ Create containers with options specified as strings and lists as comma-separated
sudo: yes
tasks:
docker: image=namespace/image_name links=postgresql:db,redis:redis
Create a container with no networking:
- hosts: web
sudo: yes
tasks:
docker: image=namespace/image_name net=none
'''
HAS_DOCKER_PY = True