homeserver/friedhof/mgrote_lldap/tasks/main.yml
Michael Grote b72ccc4a92
All checks were successful
ansible-lint / gitleaks (push) Successful in 4s
ansible-lint / Ansible Lint (push) Successful in 41s
migrate lldap to docker (#238)
docker-compose/lldap/lldap_config.toml.j2
host_vars/docker10.mgrote.net.yml

Signed-off-by: Michael Grote <michael.grote@posteo.de>

Reviewed-on: #238
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-11-15 20:53:26 +01:00

29 lines
699 B
YAML

---
- name: Ensure package is installed
ansible.builtin.apt:
deb: "{{ lldap_package_url }}"
notify: Ensure services are enabled and started
- name: Ensure needed directories exist
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: lldap
group: lldap
mode: '0755'
loop:
- /usr/share/lldap/app/static/fonts
- /usr/share/lldap/app/static
- /usr/share/lldap/app/pkg
- name: Ensure config is templated
ansible.builtin.template:
src: lldap_config.toml.j2
dest: /etc/lldap/lldap_config.toml
owner: lldap
group: lldap
mode: "0644"
notify:
- Ensure services are enabled and started
- Ensure service is restarted
...