diff --git a/inventory/inventory b/inventory/inventory index 7f0dc26..fab83e1 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -24,13 +24,13 @@ nodex [doc] doc ansible_user=pollen -[local] -proxmox ansible_user=root -pihole ansible_user=pollen -bastion ansible_user=mango -debianV ansible_user=ansible -foreman ansible_user=ansible -foremanAlma ansible_user=ansible +[cluster] +node1 ansible_user=ansible +node2 ansible_user=ansible +node3 ansible_user=ansible +node4 ansible_user=ansible +node5 ansible_user=ansible +node6 ansible_user=ansible [windows] bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore diff --git a/manifests/jellyfin/install.yaml b/manifests/jellyfin/install.yaml index 5df01dc..f720f44 100644 --- a/manifests/jellyfin/install.yaml +++ b/manifests/jellyfin/install.yaml @@ -31,5 +31,13 @@ spec: - image: jellyfin/jellyfin:latest name: jellyfin resources: {} + volumeMounts: + - mountPath: /media + name: media-vol + volumes: + - name: media-vol + nfs: + server: 192.168.0.106 + path: /exports/nfs_share/media1 status: {} diff --git a/playbooks/common/nfs.yml b/playbooks/common/nfs.yml index adff803..3876ac3 100644 --- a/playbooks/common/nfs.yml +++ b/playbooks/common/nfs.yml @@ -25,3 +25,13 @@ name: nfs-kernel-server state: started enabled: true + + +- name: install nfs-common on all k8s nodes + hosts: cluster + become: true + tasks: + - name: install nfs-common(debian based) + ansible.builtin.apt: + name: nfs-common + state: present diff --git a/templates/exports.conf.j2 b/templates/exports.conf.j2 index 3bec685..da943a9 100644 --- a/templates/exports.conf.j2 +++ b/templates/exports.conf.j2 @@ -1 +1 @@ -{{nfs_dir}} {{nfs_server_ip}}(rw,sync,no_root_squash,no_subtree_check) +{{nfs_dir}} *(rw,sync,no_root_squash,no_subtree_check)