Add LDAP client tools
This commit is contained in:
parent
9d65590b25
commit
fd3743f293
3 changed files with 31 additions and 0 deletions
22
ldap/tasks/main.yml
Normal file
22
ldap/tasks/main.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
name: openldap-clients
|
||||
state: installed
|
||||
|
||||
- name: configure ldap client
|
||||
template:
|
||||
dest: /etc/openldap/ldap.conf
|
||||
src: ldap.conf.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: authenticate to ldap with host certs when running as root
|
||||
template:
|
||||
dest: /root/.ldaprc
|
||||
src: ldaprc.j2
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
Loading…
Add table
Add a link
Reference in a new issue