From 6108498bc2f62e0ff1210538865928f0682df364 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 4 Feb 2023 14:54:32 +0100 Subject: Fix ragent for h1 --- .../playbooks/patch_rpc_svcgssd_service.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 personal_infra/playbooks/patch_rpc_svcgssd_service.yaml (limited to 'personal_infra/playbooks') diff --git a/personal_infra/playbooks/patch_rpc_svcgssd_service.yaml b/personal_infra/playbooks/patch_rpc_svcgssd_service.yaml new file mode 100644 index 00000000..957ecdd1 --- /dev/null +++ b/personal_infra/playbooks/patch_rpc_svcgssd_service.yaml @@ -0,0 +1,21 @@ +--- +- hosts: patch_rpc_svcgssd_service + collections: freeipa.ansible_freeipa + vars: + ansible_user: alex + ansible_become: True + tasks: + - name: del nfs service + command: ipa service-del nfs/h1.pdp7.net + ignore_errors: True + - name: create nfs service + command: ipa service-add nfs/{{ inventory_hostname }} + - name: clean keytab + command: ipa-rmkeytab -p nfs/{{ inventory_hostname }} -k /etc/krb5.keytab + ignore_errors: True + - name: get keytab + command: ipa-getkeytab -p nfs/{{ inventory_hostname }} -k /etc/krb5.keytab + - name: restart + service: + name: rpc-svcgssd.service + state: restarted -- cgit v1.2.3