frigate: Get cameras from LDAP
This commit is contained in:
parent
c88f8e6374
commit
ec8ae902ed
3 changed files with 22 additions and 6 deletions
|
@ -43,6 +43,22 @@
|
|||
remote_src: true
|
||||
notify: Restart frigate
|
||||
|
||||
- name: Get cameras from LDAP
|
||||
community.general.ldap_search:
|
||||
attrs:
|
||||
- cn
|
||||
- l
|
||||
client_cert: >-
|
||||
{{ hostvars[ansible_server]['tls_certs'] + '/' + ansible_server }}.crt
|
||||
client_key: >-
|
||||
{{ hostvars[ansible_server]['tls_private'] + '/' + ansible_server }}.key
|
||||
dn: "{{ ldap_basedn }}"
|
||||
filter: (&(objectClass=ipHost)(cn=ipcam*.cam.foo.sh))
|
||||
scope: subordinate
|
||||
server_uri: "ldaps://{{ ldap_server[0] }}"
|
||||
delegate_to: localhost
|
||||
register: ldap_cams
|
||||
|
||||
- name: Create config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/frigate.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue