-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopyConfigs.yml
48 lines (47 loc) · 1.18 KB
/
copyConfigs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- name: Copy config files with ldap enabled
hosts: localhost
vars_files:
- vars/vars.yml
any_errors_fatal: true
remote_user: root
become: yes
become_method: su
tasks:
- name: Copy file nsswitch with owner and permissions
template:
src: template/nsswitch.conf.j2
dest: /etc/nsswitch.conf
owner: root
group: root
mode: '0644'
- name: Copy file ldap.conf with owner and permissions
template:
src: template/ldap.conf.j2
dest: /etc/ldap/ldap.conf
owner: root
group: root
mode: '0644'
- name: Copy file sldap.conf with owner and permissions
template:
src: template/slapd.conf.j2
dest: /usr/share/slapd/slapd.conf
owner: root
group: root
mode: '0644'
- name: Copy file krb5.conf with new ldap settings
template:
src: template/krb5.conf.ldap.j2
dest: /etc/krb5.conf
owner: root
group: root
mode: '0644'
- name: Copy file kdc.conf with new ldap settings
template:
src: template/kdc.conf.ldap.j2
dest: /etc/krb5kdc/kdc.conf
owner: root
group: root
mode: '0644'
- name: Reload configs
systemd: daemon_reload=yes