aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/playbooks/patch_rpc_svcgssd_service.yaml
blob: 683cb0451b11d8d686bf04c729799e17bd706f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/{{ inventory_hostname }}
    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