From 9198e7f8096e9f1b0d5f474cf2345913a357f864 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 7 Jul 2014 23:02:45 +0200 Subject: Make the Ansible LDAP plugin able to delete entries and attributes. Use it to delete cn=admin,dc=fripost,dc=org, and to remove the rootDN on the 'config' database. --- lib/action_plugins/openldap.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/action_plugins') diff --git a/lib/action_plugins/openldap.py b/lib/action_plugins/openldap.py index ee8a991..5dbf59f 100644 --- a/lib/action_plugins/openldap.py +++ b/lib/action_plugins/openldap.py @@ -31,6 +31,9 @@ class ActionModule(object): def run(self, conn, tmp, module_name, module_args, inject, complex_args=None, **kwargs): ''' handler for file transfer operations ''' + if self.runner.noop_on_check(inject): + return ReturnData(conn=conn, comm_ok=True, result=dict(skipped=True)) + # load up options options = {} if complex_args: -- cgit v1.2.3