Skip to content

Commit

Permalink
cloudplow: add cloudplow-reset tag
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Aug 21, 2023
1 parent 908c50e commit 2bdb418
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions roles/cloudplow/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
tags:
- "cloudplow-disable"

- name: Reset Cloudplow directory
ansible.builtin.file:
path: "{{ cloudplow_path }}"
state: absent
when: ('cloudplow-reset' in ansible_run_tags)

- name: Check if Plex instance is defined
ansible.builtin.set_fact:
plex_name: "{{ plex_name | default(plex_instances[0]) }}"
Expand Down
2 changes: 1 addition & 1 deletion saltbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- { role: overseerr, tags: ['saltbox', 'mediabox', 'overseerr'] }
- { role: portainer, tags: ['saltbox', 'feederbox', 'portainer'] }
- { role: organizr, tags: ['saltbox', 'feederbox', 'organizr'] }
- { role: cloudplow, tags: ['saltbox', 'feederbox', 'cloudplow'], when: ['use_cloudplow'] }
- { role: cloudplow, tags: ['saltbox', 'feederbox', 'cloudplow', 'cloudplow-reset'], when: ['use_cloudplow'] }
- { role: sonarr, tags: ['saltbox', 'feederbox', 'sonarr'] }
- { role: radarr, tags: ['saltbox', 'feederbox', 'radarr'] }
- { role: lidarr, tags: ['saltbox', 'feederbox', 'lidarr'] }
Expand Down

0 comments on commit 2bdb418

Please sign in to comment.