maabara/playbooks/common/nfs.yml

41 lines
925 B
YAML
Raw Normal View History

---
- name: installs nfs and makes common folders available to the network
hosts: baxter
become: true
vars_files:
- ../../vars/secrets.yml
tasks:
- name: install nfs core packages
ansible.builtin.apt:
name: nfs-kernel-server
state: present
- name: write config to /etc/exports
ansible.builtin.template:
src: ../../templates/exports.conf.j2
dest: /etc/exports
mode: '0644'
- name: export the configuration(being safe)
ansible.builtin.shell: |
exportfs -ra
- name: start the nfs service
ansible.builtin.service:
name: nfs-kernel-server
state: started
enabled: true
2024-11-18 00:50:49 +00:00
- name: install nfs-common on all k8s nodes + prep for longhorn
hosts: cluster
become: true
tasks:
- name: install nfs-common(debian based)
ansible.builtin.apt:
2024-11-18 00:50:49 +00:00
pkg:
- open-iscsi
- nfs-common
- cryptsetup
- dmsetup