-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkrb.yml
60 lines (51 loc) · 1.43 KB
/
krb.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
48
49
50
51
52
53
54
55
56
57
58
59
60
---
- name: Enable GSSAPIAuthentication=yes
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?GSSAPIAuthentication"
line: "GSSAPIAuthentication yes"
- name: Enable GSSAPIKeyExchange=yes
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?GSSAPIKeyExchange"
line: "GSSAPIKeyExchange yes"
- name: Enable GSSAPICleanupCredentials=no
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?GSSAPICleanupCredentials"
line: "GSSAPICleanupCredentials no"
- name: Enable GSSAPIStrictAcceptorCheck=no
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?GSSAPIStrictAcceptorCheck"
line: "GSSAPIStrictAcceptorCheck no"
- name: Enable KerberosAuthentication
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?KerberosAuthentication"
line: "KerberosAuthentication yes"
- name: Enable KerberosOrLocalPasswd
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?KerberosOrLocalPasswd"
line: "KerberosOrLocalPasswd yes"
- name: Enable KerberosTicketCleanup
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?KerberosTicketCleanup"
line: "KerberosTicketCleanup yes"
- name: Update k5login
lineinfile:
dest: /root/.k5login
regexp: "^{{ item }}.root"
line: "{{ item }}/[email protected]"
create: yes
loop:
- nsg
- fabian
- kaj
- name: Deploy krb-bootstrap script
copy:
src: files/krb-bootstrap
dest: /usr/local/bin/krb-bootstrap
mode: 0755