Create the link before changing the config permissions.

This commit is contained in:
Andrea Dell'Amico 2022-06-20 16:52:37 +02:00
parent 2e41f83f6f
commit 910af05b9c
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 5 deletions

View File

@ -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']