Skip to content

Commit

Permalink
Plex-Reset-Codecs: Add grace
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Jan 9, 2024
1 parent e498aed commit 37914d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion roles/plex/tasks/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@
- "{{ plex_paths_location }}/99-modify-binary"
- "{{ server_appdata_path }}/scripts/bbe"

- name: Get contents of Plex Codecs Folder
ansible.builtin.find:
path: "{{ plex_paths_application_support_location }}/Codecs"
excludes: '.device-id'
register: plex_codecs_removal

- name: Delete Plex Codecs Folder
ansible.builtin.file:
path: "{{ plex_paths_application_support_location }}/Codecs"
path: "{{ item.path }}"
state: absent
with_items: "{{ plex_codecs_removal.files }}"
when: ('plex-reset-codecs' in ansible_run_tags)

- name: Pre-Install Tasks
Expand Down

0 comments on commit 37914d5

Please sign in to comment.