Add Kerberos client tools
This commit is contained in:
parent
8fe119b028
commit
9d65590b25
2 changed files with 24 additions and 0 deletions
13
kerberos/tasks/main.yml
Normal file
13
kerberos/tasks/main.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: install kerberos client packages
|
||||||
|
package:
|
||||||
|
name: krb5-workstation
|
||||||
|
state: installed
|
||||||
|
|
||||||
|
- name: configure kerberos client
|
||||||
|
template:
|
||||||
|
dest: /etc/krb5.conf.d/realm.conf
|
||||||
|
src: realm.conf.j2
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
11
kerberos/templates/realm.conf.j2
Normal file
11
kerberos/templates/realm.conf.j2
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[libdefaults]
|
||||||
|
default_realm = {{ kerberos_realm }}
|
||||||
|
|
||||||
|
[realms]
|
||||||
|
{{ kerberos_realm }} = {
|
||||||
|
kdc = https://id.foo.sh/KdcProxy
|
||||||
|
}
|
||||||
|
|
||||||
|
[domain_realm]
|
||||||
|
.{{ kerberos_realm|lower() }} = {{ kerberos_realm }}
|
||||||
|
{{ kerberos_realm|lower() }} = {{ kerberos_realm }}
|
Loading…
Add table
Reference in a new issue