Skip to content

Commit

Permalink
Update nginx configuration for ms after updating omero-web
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Oct 13, 2024
1 parent 8b8c48e commit 57c795a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ansible/idr-omero-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@
# Vars are in group_vars/omero-hosts.yml

environment: "{{ idr_ANSIBLE_ENVIRONMENT_VARIABLES | default({}) }}"

# This bloock will run in case of updating omero-web
# It will check for the ms user exists
# If so, it will run the role to update the omero web nginx configuration file

- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
become: true

pre_tasks:
- name: check if ms user exist
ansible.builtin.user:
name: "omero-server"
check_mode: true
register: service_user

roles:
- role: ome.omero_ms_image_region
when: "{{ service_user.state | d('') == 'present' }}"

environment: "{{ idr_ANSIBLE_ENVIRONMENT_VARIABLES | default({}) }}"

0 comments on commit 57c795a

Please sign in to comment.