--- - name: LDAP szerver telepítése hosts: all become: true remote_user: janos vars: password: asdfg bind_dn: cn=admin,dc=zold,dc=and people_dn: ou=people,dc=zold,dc=and groups_dn: ou=groups,dc=zold,dc=and tasks: - name: Gépnév beállítása hostname: name: gep.zold.and - name: openldap jelszó beállítás debconf: name: "slapd" question: 'slapd/password1' value: "{{ password }}" vtype: password - name: openldap jelszó ismétlés debconf: name: "slapd" question: 'slapd/password2' value: "{{ password }}" vtype: password - name: openldap domain beállítás debconf: name: "slapd" question: 'slapd/domain' value: zold.and vtype: string - name: Csomagok telepítése apt: name: "{{ item }}" state: present update_cache: yes loop: - slapd - ldap-utils - python-ldap - name: people felvétele ldap_entry: dn: "{{ people_dn }}" objectClass: - organizationalUnit state: present server_uri: ldap://localhost/ bind_dn: "{{ bind_dn }}" bind_pw: "{{ password }}" - name: groups felvétele ldap_entry: dn: "{{ groups_dn }}" objectClass: - organizationalUnit state: present server_uri: ldap://localhost/ bind_dn: "{{ bind_dn }}" bind_pw: "{{ password }}"