-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42daaa3
commit eeb760a
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
--- | ||
- name: Check if jellyfin system config file exists | ||
ansible.builtin.stat: | ||
path: /etc/jellyfin/config/system.xml | ||
path: /data/state/jellyfin/config/system.xml | ||
register: jellyfin_system_config_file | ||
|
||
- name: Create jellyfin system config file | ||
ansible.builtin.copy: | ||
dest: /etc/jellyfin/config/system.xml | ||
dest: /data/state/jellyfin/config/system.xml | ||
content: "<ServerConfiguration/>" | ||
mode: 0600 | ||
when: not jellyfin_system_config_file.stat.exists | ||
notify: Restart jellyfin | ||
|
||
- name: Enable jellyfin metrics | ||
community.general.xml: | ||
path: /etc/jellyfin/config/system.xml | ||
path: /data/state/jellyfin/config/system.xml | ||
xpath: /ServerConfiguration/EnableMetrics | ||
value: "true" | ||
notify: Restart jellyfin | ||
|
||
- name: Check if jellyfin network config file exists | ||
ansible.builtin.stat: | ||
path: /etc/jellyfin/config/network.xml | ||
path: /data/state/jellyfin/config/network.xml | ||
register: jellyfin_network_config_file | ||
|
||
- name: Create jellyfin network config file | ||
ansible.builtin.copy: | ||
dest: /etc/jellyfin/config/network.xml | ||
dest: /data/state/jellyfin/config/network.xml | ||
content: "<NetworkConfiguration/>" | ||
mode: 0600 | ||
when: not jellyfin_network_config_file.stat.exists | ||
notify: Restart jellyfin | ||
|
||
- name: Enable jellyfin metrics | ||
community.general.xml: | ||
path: /etc/jellyfin/config/network.xml | ||
path: /data/state/jellyfin/config/network.xml | ||
xpath: /NetworkConfiguration/BaseUrl | ||
value: "/jellyfin" | ||
notify: Restart jellyfin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters