1
0
Fork 0
home-stack-ansible/roles/plex/tasks/main.yml

32 lines
750 B
YAML
Raw Normal View History

2022-08-29 13:23:19 +00:00
- 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
2022-08-29 13:23:19 +00:00
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 }}'