Skip to content

Commit

Permalink
IQSS#163 correct combined conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
don.sizemore committed Jul 27, 2021
1 parent 200b308 commit 0fc9bd2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
owner: '{{ dataverse.payara.user }}'
group: '{{ dataverse.payara.group }}'
mode: 0644
when: (s3.download_redirect == true
or s3.upload_redirect == true)
when: (s3.download_redirect == true or s3.upload_redirect == true)
and s3.cors_already_set == false

- name: enable CORS on S3 bucket
Expand All @@ -90,8 +89,7 @@
become_user: '{{ dataverse.payara.user }}'
environment:
PATH: "{{ lookup('env', 'PATH') }}:/usr/local/bin"
when: (s3.download_redirect == true
or s3.upload_redirect == true)
when: (s3.download_redirect == true or s3.upload_redirect == true)
and custom_endpoint_url | length == 0
and cors_already_set = false

Expand Down

0 comments on commit 0fc9bd2

Please sign in to comment.