From 54e3820a872e2038b09af9382cf4764ae9392c28 2024-09-09 15:03:53
From: Branko Majic <branko@majic.rs>
Date: 2024-09-09 15:03:53
Subject: [PATCH] MAR-218: Update to non-deprecated ldap_attrs module in usage instructions.

---

diff --git a/docs/usage.rst b/docs/usage.rst
index 80294233d797c81de50f575d2b81ec5dcf689f89..505e3c8601607e29dbebb021c5ae01af0f5bdc44 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -946,11 +946,11 @@ role.
      workon mysite && ansible-playbook playbooks/site.yml
 
 7. Let's add the two users to the mail group (otherwise, the mail
-   server will ignore them). We'll use the ``ldap_attr`` module
+   server will ignore them). We'll use the ``ldap_attrs`` module
    directly to make our life a bit easier::
 
-     workon mysite && ansible --become -m ldap_attr -a "dn=cn=mail,ou=groups,dc=example,dc=com state=present name=uniqueMember values=uid=johndoe,ou=people,dc=example,dc=com" communications
-     workon mysite && ansible --become -m ldap_attr -a "dn=cn=mail,ou=groups,dc=example,dc=com state=present name=uniqueMember values=uid=janedoe,ou=people,dc=example,dc=com" communications
+     workon mysite && ansible --become -m ldap_attrs -a '{"dn": "cn=mail,ou=groups,dc=example,dc=com", "state": "present", "attributes": {"uniqueMember": "uid=johndoe,ou=people,dc=example,dc=com"}}' communications
+     workon mysite && ansible --become -m ldap_attrs -a '{"dn": "cn=mail,ou=groups,dc=example,dc=com", "state": "present", "attributes": {"uniqueMember": "uid=janedoe,ou=people,dc=example,dc=com"}}' communications
 
 8. If no errors have been reported, at this point you should have two mail
    accounts - ``john.doe@example.com``, with password ``johndoe``, and
@@ -1187,8 +1187,9 @@ role.
 
    ::
 
-      workon mysite && ansible --become -m ldap_attr -a "dn=cn=xmpp,ou=groups,dc=example,dc=com state=present name=uniqueMember values=uid=johndoe,ou=people,dc=example,dc=com" communications
-      workon mysite && ansible --become -m ldap_attr -a "dn=cn=xmpp,ou=groups,dc=example,dc=com state=present name=uniqueMember values=uid=janedoe,ou=people,dc=example,dc=com" communications
+     workon mysite && ansible --become -m ldap_attrs -a '{"dn": "cn=xmpp,ou=groups,dc=example,dc=com", "state": "present", "attributes": {"uniqueMember": "uid=johndoe,ou=people,dc=example,dc=com"}}' communications
+     workon mysite && ansible --become -m ldap_attrs -a '{"dn": "cn=xmpp,ou=groups,dc=example,dc=com", "state": "present", "attributes": {"uniqueMember": "uid=janedoe,ou=people,dc=example,dc=com"}}' communications
+
 
 
 7. If no errors have been reported, at this point you should have two users