feat: Kerberos principals for nfs server and client hosts

This commit is contained in:
Paul Breugnot 2026-10-24 10:12:36 +02:00
parent 494e748beb
commit 696cf4c8fe
3 changed files with 27 additions and 0 deletions

10
create-client-host.yml Normal file
View file

@ -0,0 +1,10 @@
- name: Set up NFS client host (server side)
hosts: server
tasks:
- name: Create kerberos principal for client host
ansible.builtin.command:
cmd: "kadmin.local add_principal -nokey {{ nfs_client_host }}"
failed_when: _task.result.rc != 0 and _task.result.rc != 1
changed_when: _task.result.rc == 0