Skip to content

Commit

Permalink
Plex-Reset-Codecs: Convert to block
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Jan 9, 2024
1 parent 37914d5 commit 79d3de7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions roles/plex/tasks/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,21 @@
- "{{ 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: "{{ item.path }}"
state: absent
with_items: "{{ plex_codecs_removal.files }}"
- name: Plex Reset Codecs tasks
when: ('plex-reset-codecs' in ansible_run_tags)
block:

Check failure on line 43 in roles/plex/tasks/main2.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[trailing-spaces]

Trailing spaces
- 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: "{{ item.path }}"
state: absent
with_items: "{{ plex_codecs_removal.files }}"

- name: Pre-Install Tasks
ansible.builtin.import_tasks: "subtasks/pre-install/main.yml"
Expand Down

0 comments on commit 79d3de7

Please sign in to comment.