Skip to content

Commit

Permalink
cloudplow: only fail if config doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 28, 2023
1 parent 3e9a81a commit 4d804b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions roles/cloudplow/tasks/subtasks/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
# GNU General Public License v3.0 #
#########################################################################
---
- name: Settings | Fail if duplicate folders where found.
ansible.builtin.fail:
msg:
- "Duplicate upload folders found. This is likely an error on your part."
- "If not then supply your own configuration file at '{{ cloudplow_config_path }}' and rerun the previous tag."
when: (cloudplow_remotes | length) != (cloudplow_upload_paths_unique | length)

- name: Check if Plex instance is defined
ansible.builtin.set_fact:
plex_name: "{{ plex_name | default(plex_instances[0]) }}"
Expand Down Expand Up @@ -41,6 +34,13 @@
- name: Settings | New 'config.json' tasks
when: (not cloudplow_config.stat.exists)
block:
- name: Settings | Fail if duplicate folders where found.
ansible.builtin.fail:
msg:
- "Duplicate upload folders found. This is likely an error on your part."
- "If not then supply your own configuration file at '{{ cloudplow_config_path }}' and rerun the previous tag."
when: (cloudplow_remotes | length) != (cloudplow_upload_paths_unique | length)

- name: Settings | Import 'config.json'
ansible.builtin.template:
src: config.json.j2
Expand Down

0 comments on commit 4d804b8

Please sign in to comment.