Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

#1758 Replace openseadragon_iiiv with openseadragon_iiif #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ openseadragon_temp_folder: /tmp

Check for an existing IIIF server configuration setting
```
openseadragon_iiiv_set_var: false
openseadragon_iiif_set_var: false
```

What to set the IIIF server to:
```
openseadragon_iiiv_server:
openseadragon_iiif_server:
```

## Dependencies
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ openseadragon_sites:
openseadragon_version: 2.4.1
openseadragon_temp_folder: /tmp

openseadragon_iiiv_set_var: false
openseadragon_iiiv_server:
openseadragon_iiif_set_var: false
openseadragon_iiif_server:
12 changes: 6 additions & 6 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
- name: Check IIIF URL
command:
"{{ openseadragon_drush_path }} --root {{ openseadragon_composer_root }}/web cget openseadragon.settings iiif_server --format=json"
when: openseadragon_iiiv_set_var
when: openseadragon_iiif_set_var
changed_when: false
failed_when: false
register: openseadragon_iiiv_status
register: openseadragon_iiif_status

- name: Set IIIF URL
command:
"{{ openseadragon_drush_path }} --root {{ openseadragon_composer_root }}/web cset openseadragon.settings iiif_server {{ openseadragon_iiiv_server }} --yes"
"{{ openseadragon_drush_path }} --root {{ openseadragon_composer_root }}/web cset openseadragon.settings iiif_server {{ openseadragon_iiif_server }} --yes"
when: >
not openseadragon_iiiv_status.skipped|default(false) and
(openseadragon_iiiv_status.rc == 1 or
(openseadragon_iiiv_status.stdout|from_json)['openseadragon.settings:iiif_server'] != openseadragon_iiiv_server)
not openseadragon_iiif_status.skipped|default(false) and
(openseadragon_iiif_status.rc == 1 or
(openseadragon_iiif_status.stdout|from_json)['openseadragon.settings:iiif_server'] != openseadragon_iiif_server)