Fix kubernetes persistent volumes with specific file ownership.

This commit is contained in:
Tom Alexander 2023-07-04 02:53:35 -04:00
parent 759fece687
commit 625babddc4
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -27,15 +27,15 @@
name: zdata/k8spersistent
state: present
extra_zfs_properties:
sharenfs: "-network 10.215.1.0/24,-alldirs,-mapall=nobody"
sharenfs: "-network 10.215.1.0/24,-alldirs,-maproot=root:root"
mountpoint: /k8spersistent
- name: Update ownership
file:
name: "{{ item }}"
state: directory
mode: 0755
owner: nobody
group: nobody
mode: 0777
owner: root
group: wheel
loop:
- /k8spersistent