chore: remove nfs and traefik roles. Move them to tasks

This commit is contained in:
2025-10-11 22:02:00 +10:00
parent 09c67abe58
commit bc61753794
15 changed files with 421 additions and 575 deletions

16
tasks/nfs.yml Executable file
View File

@@ -0,0 +1,16 @@
---
- name: Install NFS mount utility
ansible.builtin.apt:
update_cache: true
pkg: nfs-common
state: present
when: ansible_os_family == "Debian"
- name: Mount an NFS volume
ansible.posix.mount:
src: "{{ item.src }}"
path: "{{ item.path }}"
opts: "{{ item.opts | default('rw,sync,hard') }}"
state: "{{ item.state | default( 'mounted' ) }}"
fstype: nfs
with_items: "{{ mounts }}"