xoxys.ldap_proxy/tasks/setup.yml
2018-12-01 01:31:11 +01:00

30 lines
662 B
YAML

---
- block:
- name: Install required packages
package:
name: "{{ item }}"
state: present
with_items:
- openldap-servers
- openldap-clients
- name: Deploy environment file
template:
src: "etc/sysconfig/slapd.j2"
dest: "/etc/sysconfig/slapd"
owner: root
group: root
mode: 0644
notify: __slapd_restart
- name: Deploy config file
template:
src: "etc/openldap/slapd.conf.j2"
dest: "/etc/openldap/slapd.conf"
owner: root
group: root
mode: 0644
notify: __slapd_restart
become: True
become_user: root