rainbowsheep-cloud/create-client-host.yml

10 lines
324 B
YAML

- 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