32 lines
750 B
YAML
32 lines
750 B
YAML
- name: Add plex package repository key
|
|
ansible.builtin.apt_key:
|
|
url: https://downloads.plex.tv/plex-keys/PlexSign.key
|
|
|
|
- name: Add plex package repository
|
|
apt_repository:
|
|
repo: deb https://downloads.plex.tv/repo/deb public main
|
|
|
|
- name: Install packages
|
|
apt:
|
|
update_cache: yes
|
|
name:
|
|
- gpg
|
|
- plexmediaserver
|
|
- nfs-common
|
|
|
|
- name: Create library mount points directory
|
|
file:
|
|
path: "/mnt/{{ item|regex_replace(':','/') }}"
|
|
state: directory
|
|
loop: '{{ nfs_libraries }}'
|
|
|
|
- name: Create library mount points
|
|
mount:
|
|
boot: yes
|
|
path: "/mnt/{{ item|regex_replace(':','/') }}"
|
|
src: "{{ item }}"
|
|
fstype: nfs
|
|
opts: defaults,ro,_netdev
|
|
state: mounted
|
|
loop: '{{ nfs_libraries }}'
|