forked from ISTI-ansible-roles/ansible-roles
home library: create a symbolic link to the jackrabbit repository if it is not in the correct place already.
This commit is contained in:
parent
945c5a61ca
commit
098fb97660
|
@ -29,6 +29,14 @@
|
|||
become_user: root
|
||||
file: dest={{ jackrabbit_data_dir }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||
|
||||
- name: Verify if the JackRabbit persistence directory is in the place where the service expects it
|
||||
stat: path={{ smartgears_instance_path }}/jackrabbit
|
||||
register: jackrabbit_data_path
|
||||
|
||||
- name: Link the data dir to the place where jackrabbit expects it
|
||||
file: src={{ jackrabbit_data_dir }} dest={{ smartgears_instance_path }}/jackrabbit state=link
|
||||
when: not jackrabbit_data_path.exists
|
||||
|
||||
- name: Install the repository configuration files
|
||||
template: src={{ item }}.j2 dest={{ jackrabbit_data_dir }}/{{ item }}
|
||||
with_items: '{{ jackrabbit_config_files }}'
|
||||
|
|
Loading…
Reference in New Issue