Skip to content

Commit

Permalink
Run ms deployment role if omero-web updated
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Oct 11, 2024
1 parent 1022ef5 commit 9efc3a3
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 use is exist
# If so it will run to update the omero web nginx configuration file

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

pre_tasks:
- name: check if the ms service user exists
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 9efc3a3

Please sign in to comment.