homeserver/roles/mgrote_lldap/tasks/main.yml
Michael Grote e323282297
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
mode
2024-04-03 17:47:09 +02:00

27 lines
659 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
...