From afa8c210afc060493fea219801e61d37c361c980 Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Mon, 2 Dec 2024 11:32:43 +0000 Subject: [PATCH] debug 10.2 --- ansible/idr-01-install-idr.yml | 4 +- ansible/idr-omero-readonly.yml | 90 ---------------------------------- 2 files changed, 3 insertions(+), 91 deletions(-) diff --git a/ansible/idr-01-install-idr.yml b/ansible/idr-01-install-idr.yml index 4b48d9ab..f2f38608 100644 --- a/ansible/idr-01-install-idr.yml +++ b/ansible/idr-01-install-idr.yml @@ -8,9 +8,11 @@ - import_playbook: idr-omero.yml +- import_playbook: idr-omero-readonly.yml + - import_playbook: idr-omero-web.yml -- import_playbook: idr-omero-readonly.yml + tags: diff --git a/ansible/idr-omero-readonly.yml b/ansible/idr-omero-readonly.yml index 1015a6b2..bebcf2a6 100644 --- a/ansible/idr-omero-readonly.yml +++ b/ansible/idr-omero-readonly.yml @@ -5,96 +5,6 @@ # TODO: Consider putting some of this into a role # OMERO read-write fileserver for OMERO read-only -- hosts: "{{ idr_environment | default('idr') }}-omeroreadwrite-hosts" - - pre_tasks: - - name: Create idr-metadata directory - become: yes - file: - path: /data/idr-metadata - state: directory - mode: 0755 - # Lock down the read-write node in the read-only cluster - - name: install nfs-utils - become: true - ansible.builtin.dnf: - update_cache: true - name: nfs-utils - state: present - - - name: Display nfs-server status - command: systemctl enable --now nfs-server - register: command_output - - - name: enable nfs - become: true - service: - enabled: true - name: nfs-server - state: started - - - name: Display nfs-server status - command: ls -ld /data/OMERO - register: command_output1 - - - name: Display nfs-server status - command: ls -ld /data/BioFormatsCache - register: command_output2 - - name: Display nfs-server status - command: ls -ld /data/idr-metadata - register: command_output3 - - - name: Display nfs-server status - command: exportfs -v - register: command_output4 - - - - name: Print to console - debug: - msg: - - "{{command_output1.stdout}}" - - "{{command_output2.stdout}}" - - "{{command_output3.stdout}}" - - "{{command_output4.stdout}}" - - - name: Display nfs-server status - command: exportfs -ra - register: command_output5 - ignore_errors: true - - - name: Print to console2 - debug: - msg: "{{command_output5}}" - - roles: - - role: ome.nfs_share - nfs_shares2: - /data/OMERwO: - - host: "*" - options: 'ro' - /data/BioFormwatsCache: - # TODO: Limit which hosts can write to this dir - - host: "*" - options: 'rw' - /data/idr-metadwata: - - host: "*" - options: 'ro' - - # Include restart handlers - - role: ome.omero_common - - tasks: - - name: OMERO.server prevent external access - become: yes - copy: - content: | - config set -- Ice.Default.Host 127.0.0.1 - dest: /opt/omero/server/config/omero-localhostonly-config.omero - force: yes - mode: 0644 - notify: - - restart omero-server - # Read-only OMERO.server config