Compare commits

..

No commits in common. "dev" and "main" have entirely different histories.
dev ... main

3 changed files with 0 additions and 27 deletions

View file

@ -1,10 +0,0 @@
- 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

View file

@ -5,5 +5,4 @@
- chrony
- kerberos
- nfs
- kerberos_nfs
- vault

View file

@ -1,16 +0,0 @@
- name: Create nfs kerberos principal
ansible.builtin.command:
cmd: "kadmin.local add_principal -nokey nfs/{{ ansible_facts['hostname'] }}"
failed_when: _task.result.rc != 0 and _task.result.rc != 1
changed_when: _task.result.rc == 0
- name: Check keytab
ansible.builtin.command:
cmd: "k5srvutil list"
register: keytab
- name: Add nfs kerberos to keytab
ansible.builtin.command:
cmd: "kadmin.local ktadd nfs/{{ kerberos_realm}}"
when: keytab.stdout is not search("nfs/" ~ ansible_facts['hostname'])