Skip to content

Commit

Permalink
debug4
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Dec 1, 2024
1 parent 77676e7 commit f9cffd2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
4 changes: 2 additions & 2 deletions ansible/idr-01-install-idr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

- import_playbook: idr-omero.yml

- import_playbook: idr-omero-web.yml

- import_playbook: idr-omero-readonly.yml

- import_playbook: idr-omero-web.yml

tags:
# Requires NFS shares which can't be configured in Docker
- skip_if_molecule_docker
Expand Down
15 changes: 1 addition & 14 deletions ansible/idr-omero-readonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
mode: 0755

roles:

- role: ome.nfs_share
nfs_shares:
/data/OMERO:
Expand Down Expand Up @@ -185,7 +186,6 @@
'[},]'
))
- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
tasks:
- name: Get database host
Expand All @@ -195,7 +195,6 @@
'-database-hosts'][0]][
'ansible_' + (idr_net_iface | default('eth0'))]['ipv4']['address'] }}
- hosts: >
{{ idr_environment | default('idr') }}-omeroreadonly-hosts
Expand Down Expand Up @@ -238,15 +237,3 @@
path: "{{ omero_common_basedir }}/server/OMERO.server/lib/scripts/omero"
state: absent
notify: restart omero-server

# deploy ms
# This will modify the omero web nginx configuration file
# It should be executed after running idr-omero-web.yml
# as it is in idr-01-install-idr.yml
- hosts: "{{ idr_environment | default('idr') }}-omeroreadonly-hosts"
become: true

roles:
- role: ome.omero_ms_image_region

environment: "{{ idr_ANSIBLE_ENVIRONMENT_VARIABLES | default({}) }}"
14 changes: 7 additions & 7 deletions ansible/idr-omero-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
- 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
# 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' }}"
# when: "{{ service_user.state | d('') == 'present' }}"

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

0 comments on commit f9cffd2

Please sign in to comment.