From 44eee2ccb07a6008a55a95a89457f363f87ed88c Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Sun, 1 Dec 2024 21:38:10 +0000 Subject: [PATCH] test_2.1 --- ansible/idr-omero-web.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ansible/idr-omero-web.yml b/ansible/idr-omero-web.yml index 6a78d419..c9dff70a 100644 --- a/ansible/idr-omero-web.yml +++ b/ansible/idr-omero-web.yml @@ -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({}) }}"