Skip to content

Commit

Permalink
update root queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ahembree committed Aug 10, 2024
1 parent e4f93cd commit 2b01697
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/hmsdocker/tasks/app_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@
- name: Set Radarr root folder variables
ansible.builtin.set_fact:
radarr_accessible_root_folders: "{{ radarr_root_folders.json | json_query('[?accessible==`true`].path') }}"
radarr_mount_list: "{{ radarr_container_info.container.Mounts | selectattr('Source', 'equalto', hms_docker_mount_path) | map(attribute='Destination') | list }}"
hmsd_movie_folders: "{{ hms_docker_library_folders | selectattr('type', 'equalto', 'movies') | map(attribute='folder_name') | list }}"
radarr_mount_list: "{{ radarr_container_info.container.Mounts | json_query(mount_query) }}"
hmsd_movie_folders: "{{ hms_docker_library_folders | json_query('[?type==`movies`].folder_name') }}"
vars:
mount_query: "[?Source=='{{ hms_docker_mount_path }}'].Destination"

- name: Ensure root folder is configured in Radarr
ansible.builtin.uri:
Expand Down

0 comments on commit 2b01697

Please sign in to comment.