idealista / jira_role

Ansible role to install Atlassian JIRA
Apache License 2.0
13 stars 14 forks source link

Creating symbolic link to attachments directory fails #19

Open martinraie opened 5 years ago

martinraie commented 5 years ago

Prerequisites

Description

Creating symbolic link to attachments directory fails

Steps to Reproduce

  1. Define variable jira_attachments_dir to non-default value (existing directory)
  2. Run role

Expected behavior: Expected symbolic link to be created.

Actual behavior: Ansible fails with following error: fatal: [localhost]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /var/atlassian/application-data/jira/data/attachments", "owner": "root", "path": "/data/jira/attachments", "size": 4096, "src": "/var/atlassian/application-data/jira/data/attachments", "state": "directory", "uid": 0}

Reproduces how often: Always

Versions

1.1.0

Additional Information

It seems that "dest" and "src" properties are mixed up in task "Link attachments folder in case not using default one". Currently is like this:

    src: "{{ jira_home }}/data/attachments"
    dest: "{{ jira_attachments_dir }}"

Should be like this:

    dest: "{{ jira_home }}/data/attachments"
    src: "{{ jira_attachments_dir }}"