>
> Here is the patch and I tested it - patch against docker.py - ansible 
> version 1.8.4
>

 --- docker.py    2015-02-20 04:02:51.000000000 +1000
+++ docker1.py    2015-04-17 13:05:00.000000000 +1000
@@ -204,7 +204,12 @@
     default: ''
     aliases: []
     version_added: "1.8"
-
+  cap-add:
+    description:
+      - Add capability
+    required: false
+    default: ''
+    version_added: "1.8"
 author: Cove Schneider, Joshua Conner, Pavel Antonov
 requirements: [ "docker-py >= 0.3.0", "docker >= 0.10.0" ]
 '''
@@ -408,7 +413,7 @@
                 if len(parts) == 2:
                     self.volumes[parts[1]] = {}
                     self.binds[parts[0]] = parts[1]
-                # with bind mode 
+                # with bind mode
                 elif len(parts) == 3:
                     if parts[2] not in ['ro', 'rw']:
                         self.module.fail_json(msg='bind mode needs to 
either be "ro" or "rw"')
@@ -654,6 +659,7 @@
             'privileged':   self.module.params.get('privileged'),
             'links': self.links,
             'network_mode': self.module.params.get('net'),
+            'cap_add': self.module.params.get('cap_add'),
         }
         if docker.utils.compare_version('1.10', 
self.client.version()['ApiVersion']) >= 0 and hasattr(docker, 
'__version__') and docker.__version__ > '0.3.0':
             params['dns'] = self.module.params.get('dns')
@@ -742,7 +748,8 @@
             tty             = dict(default=False, type='bool'),
             lxc_conf        = dict(default=None, type='list'),
             name            = dict(default=None),
-            net             = dict(default=None)
+            net             = dict(default=None),
+            cap_add         = dict(required=False, default=None, 
type='list'),
         )
     )
 

-- 
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/c7fa01a1-df63-4edb-a67d-366631446e44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to