Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
f21c6023
Commit
f21c6023
authored
Aug 11, 2019
by
Sven-Hendrik Haase
Browse files
Merge remote-tracking branch 'coderobe/master'
parents
dfd28d46
88ef72a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/ldap/tasks/main.yml
View file @
f21c6023
...
...
@@ -6,6 +6,49 @@
# - name: start dirsrv service
# service: name=dirsrv
-
name
:
create parent entry categories
ldap_entry
:
dn
:
ou={{item]],dc=archlinux,dc=org
objectClass
:
-
top
-
organizationalUnit
attributes
:
ou
:
"
{{item}}"
with_items
:
-
users
-
groups
-
name
:
create user entries
ldap_entry
:
dn
:
uid={{item.key}},ou=users,dc=archlinux,dc=org
objectClass
:
-
top
-
person
-
inetOrgPerson
-
organizationalPerson
-
posixAccount
attributes
:
uid
:
{{
item.key
}}
givenName
:
{{
item.value.name
}}
with_dict
:
"
{{
arch_users
}}"
-
name
:
create group entries
ldap_entry
:
dn
:
cn={{item}},ou=groups,dc=archlinux,dc=org
objectClass
:
-
top
-
posixGroup
with_items
:
"
{{
arch_groups
}}"
#TODO
#- name: associate groups with users
# ldap_attr:
# dn: cn={{ TODO GROUP HERE }},ou=groups,dc=archlinux,dc=org
# name: memberuid
# values: {{ TODO USER HERE }}
# state: present
# with_
-
name
:
open firewall hole
firewalld
:
service=ldap permanent=true state=enabled immediate=yes
when
:
configure_firewall
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment