From 910af05b9cddca1ca6a6c5844e30643dcc2ec24a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 20 Jun 2022 16:52:37 +0200 Subject: [PATCH] Create the link before changing the config permissions. --- tasks/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1c45ed1..3834eb2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -48,6 +48,12 @@ mode: 'u+rX,g+rX,o+rX' when: opensearch_download is changed + - name: Create a link to the correct place + file: + src: '/opt/{{ opensearch_versioned }}' + dest: '{{ opensearch_base_install_dir }}' + state: link + - name: Opensearch want to write inside the config directory file: dest: '{{ opensearch_config_dir }}' @@ -56,11 +62,6 @@ group: '{{ opensearch_user }}' mode: 0755 - - name: Create a link to the correct place - file: - src: '/opt/{{ opensearch_versioned }}' - dest: '{{ opensearch_base_install_dir }}' - state: link tags: ['opensearch']