fix: set current static IP of VM, ensure jellyfin role restarts nginx container

This commit is contained in:
mustard 2025-10-14 00:17:36 +02:00
parent 2950835407
commit 5b9295d3a5
2 changed files with 19 additions and 1 deletions

View file

@ -1,5 +1,5 @@
proxmox_vms:
hosts:
jellyfin:
ansible_host: 10.0.1.193
ansible_host: 10.0.1.8
ansible_user: root

View file

@ -22,6 +22,12 @@
state: directory
mode: '0755'
- name: Create jellyfin tmp dir
ansible.builtin.file:
path: /srv/jellyfin/tmp
state: directory
mode: '0755'
- name: Copy over jellyfin.container file
ansible.builtin.copy:
src: ./files/jellyfin.container
@ -30,6 +36,14 @@
group: root
mode: '0644'
- name: Copy over jellyfin nginx config
ansible.builtin.copy:
src: ./files/jellyfin.conf
dest: /srv/nginx/conf.d/jellyfin.conf
owner: root
group: root
mode: '0644'
- name: Run systemctl daemon-reload
ansible.builtin.systemd_service:
daemon_reload: true
@ -39,3 +53,7 @@
name: jellyfin.service
state: restarted
- name: Restart nginx
ansible.builtin.systemd_service:
name: nginx.service
state: restarted