-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.play
73 lines (73 loc) · 2.8 KB
/
example.play
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
- name: Install Jellyfin & ldap & pwm
hosts: all
become: true
roles:
- role: tiedtoastar.openldap
openldap_is_setup: false
openldap_FQDN: example.com
openldap_domain: dc=example,dc=com
openldap_dc: example
openldap_o: example com
openldap_rootpw: ChangeMeLdap
openldap_user: ansible
openldap_group: ansible
openldap_groups:
- jellyfinwebadmins:
attributes:
description: admins that manage the jellyfin web
member: cn=jellyfinadmin,ou=people,{{ openldap_domain }}
- pwmwebadmins:
attributes:
description: admins that manage the pwm web
member: cn=pwmadmin,ou=people,{{ openldap_domain }}
openldap_users:
- dn: cn=jellyfin-ldap-service,ou=machineaccounts,{{ openldap_domain }}
objectClass:
- inetOrgPerson
userPassword: ChangeMeJly
attributes:
cn: jellyfin-ldap-service
sn: jellyfin-ldap-service
description: accounts used to connect jellyfin and the ldap for user authentication
- dn: cn=pwm-ldap-service,ou=machineaccounts,{{ openldap_domain }}
objectClass:
- inetOrgPerson
userPassword: ChangeMePwm
attributes:
cn: pwm-ldap-service
sn: pwm-ldap-service
description: account used to connect pwm and the ldap for password management
- dn: cn=jellyfinadmin,ou=people,{{ openldap_domain }}
objectClass:
- inetOrgPerson
userPassword: ChangeMeJlyAdmin
attributes:
cn: jellyfinadmin
sn: jellyfinadmin
description: account used to administrate the jellyfin web application
- dn: cn=pwmadmin,ou=people,{{ openldap_domain }}
objectClass:
- inetOrgPerson
userPassword: ChangeMePwmAdmin
attributes:
cn: pwmadmin
sn: pwmadmin
description: account used to administrate the pwm web application
- role: tiedtoastar.jellyfin
jellyfin_FQDN: www.example.com
jly_ldap_domain: dc=example,dc=com
jellyfin_plugins:
ldap:
ldapbasedn: ou=people,{{ jly_ldap_domain }}
ldapsearchfilter: (|(accountstanding=good)(!(accountstanding=*)))
ldapadminfilter: (memberOf=cn=jellyfinwebadmins,ou=groups,{{ jly_ldap_domain }})
ldapbinduser: cn=jellyfin-ldap-service,ou=machineaccounts,{{ jly_ldap_domain }}
ldapbindpassword: ChangeMeJly
- role: tiedtoastar.pwm
pwm_ldap_domain: dc=example,dc=com
pwm_site_config: /etc/nginx/sites-available/jellyfin.conf
pwm_newuser_redirecturl: https://www.example.com
pwm_site_url: https://www.example.com/pwm
pwm_securitykey: ChangeMePwmKeyChangeMePwmKeyChangeMePwmKey
pwm_config_pwd: SecurelyChangeMe
pwm_ldap_bind_pwd: ChangeMePwm