2024-04-03 10:28:05 +02:00
|
|
|
---
|
|
|
|
- name: Ensure package is installed
|
|
|
|
ansible.builtin.apt:
|
2024-04-03 10:47:17 +02:00
|
|
|
name: "{{ lldap_package_url }}"
|
2024-04-03 10:28:05 +02:00
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
- 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"
|
|
|
|
|
|
|
|
- name: Ensure services are enabled and started
|
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: lldap.service
|
|
|
|
masked: false
|
|
|
|
enabled: true
|
|
|
|
started: true
|
|
|
|
...
|