first commit

This commit is contained in:
Fern Garden 2025-05-28 17:08:15 +08:00
commit 5690a2a2ba
13 changed files with 294 additions and 0 deletions

View file

@ -0,0 +1,41 @@
- name: Ensure media group exists
become: true
tags:
- media_group
ansible.builtin.group:
name: media
state: present
gid: 1800
- name: Install nfs-common
become: true
apt:
pkg:
- nfs-common
- name: Mount /media/tv
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/tv
path: /media/tv
opts: default
state: mounted
fstype: nfs
- name: Mount /media/film
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/film
path: /media/film
opts: default
state: mounted
fstype: nfs
- name: Mount /media/misc
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/misc
path: /media/misc
opts: default
state: mounted
fstype: nfs