Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nginx Configuration to use Microservice after updating OMERO-Web #438

Open
wants to merge 2 commits into
base: master
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
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({}) }}"
5 changes: 3 additions & 2 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
- name: ome.ice
version: 4.4.4

- src: ome.iptables_raw
version: 0.4.0
- name: ome.iptables_raw
src: https://github.com/khaledk2/ansible-role-iptables-raw
version: upgrade_package_name

- src: ome.java
version: 2.2.0
Expand Down
Loading