add nfs-common tools to cluster + fixes
This commit is contained in:
parent
b470d74da0
commit
0bb9d0534b
@ -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
|
||||
|
@ -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: {}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user