aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/playbooks
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-02-04 14:54:32 +0100
committeralex <alex@pdp7.net>2023-02-04 14:54:32 +0100
commit6108498bc2f62e0ff1210538865928f0682df364 (patch)
tree80b3ff15ca4cdef7749300166777372faf37f3a9 /personal_infra/playbooks
parent1bae8385ab5012790faef73d491fec739900e7a9 (diff)
Fix ragent for h1
Diffstat (limited to 'personal_infra/playbooks')
-rw-r--r--personal_infra/playbooks/patch_rpc_svcgssd_service.yaml21
1 files changed, 21 insertions, 0 deletions
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