109 lines
2.3 KiB
YAML
109 lines
2.3 KiB
YAML
---
|
|
- name: Create /media/docker directory
|
|
ansible.builtin.file:
|
|
path: /media/docker
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Create /media/series directory
|
|
ansible.builtin.file:
|
|
path: /media/series
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Create /media/movies directory
|
|
ansible.builtin.file:
|
|
path: /media/movies
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Create /media/songs directory
|
|
ansible.builtin.file:
|
|
path: /media/songs
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Create /opt/docker directory
|
|
ansible.builtin.file:
|
|
path: /opt/docker
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Create /opt/local directory
|
|
ansible.builtin.file:
|
|
path: /opt/local
|
|
state: directory
|
|
mode: "0755"
|
|
become: true
|
|
|
|
- name: Set ownership of /opt/local to tudattr
|
|
ansible.builtin.file:
|
|
path: /opt/local
|
|
owner: tudattr
|
|
group: tudattr
|
|
become: true
|
|
|
|
- name: Set ownership of /opt/docker to tudattr
|
|
ansible.builtin.file:
|
|
path: /opt/docker
|
|
owner: tudattr
|
|
group: tudattr
|
|
become: true
|
|
|
|
- name: Set ownership of /media directories to tudattr
|
|
ansible.builtin.file:
|
|
path: /media/
|
|
owner: tudattr
|
|
group: tudattr
|
|
become: true
|
|
|
|
- name: Ensure /media/docker is mounted via NFS
|
|
ansible.posix.mount:
|
|
path: /media/docker
|
|
src: 192.168.20.12:/media/docker
|
|
fstype: nfs
|
|
opts: defaults,nolock
|
|
state: mounted
|
|
become: true
|
|
|
|
- name: Ensure /media/series is mounted via NFS
|
|
ansible.posix.mount:
|
|
path: /media/series
|
|
src: 192.168.20.12:/media/series
|
|
fstype: nfs
|
|
opts: defaults,nolock
|
|
state: mounted
|
|
become: true
|
|
|
|
- name: Ensure /media/movies is mounted via NFS
|
|
ansible.posix.mount:
|
|
path: /media/movies
|
|
src: 192.168.20.12:/media/movies
|
|
fstype: nfs
|
|
opts: defaults,nolock
|
|
state: mounted
|
|
become: true
|
|
|
|
- name: Ensure /media/songs is mounted via NFS
|
|
ansible.posix.mount:
|
|
path: /media/songs
|
|
src: 192.168.20.12:/media/songs
|
|
fstype: nfs
|
|
opts: defaults,nolock
|
|
state: mounted
|
|
become: true
|
|
|
|
- name: Ensure /opt/docker is mounted via NFS
|
|
ansible.posix.mount:
|
|
path: /opt/docker
|
|
src: 192.168.20.12:/opt/docker
|
|
fstype: nfs
|
|
opts: defaults,nolock
|
|
state: mounted
|
|
become: true
|