forked from evolix/ansible-roles
26 lines
621 B
YAML
26 lines
621 B
YAML
- name: LDAP packages are installed
|
|
ansible.builtin.apt:
|
|
name:
|
|
- slapd
|
|
- ldap-utils
|
|
- ldapvi
|
|
- shelldap
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- name: change slapd listen ip:port
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/default/slapd
|
|
regexp: 'SLAPD_SERVICES=.*'
|
|
line: "SLAPD_SERVICES=\"{{ ldap_listen }}\""
|
|
notify: restart slapd
|
|
|
|
- name: ldapvirc file
|
|
ansible.builtin.include: ldapvirc.yml
|
|
|
|
- name: nagios config file for LDAP
|
|
ansible.builtin.include: nagios.yml
|
|
|
|
- name: initialize database
|
|
ansible.builtin.include: init.yml
|
|
when: not root_ldapvirc_path.stat.exists |