Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Facing issue with JIRA upgradation using ansible playbook

Hello Team,

I have started writing ansible script for JIRA upgradation on localhost and getting the below error,

- name: Create response.varfile
path: "{{ jira_download_dir }}/response.varfile"
state: touch
mode: 0755

- name: Fill response.varfile
path: "{{ jira_download_dir }}/response.varfile"
line: "{{ item.line }}"
state: present
create: yes
- { line: 'backupJira$Boolean=true' }
- { line: 'app.install.service$Boolean=false' }
- { line: 'existingInstallationDir=/usr/local/JIRA Software' }
- { line: 'app.jiraHome=/var/atlassian/application-data/jira' }
- { line: 'sys.confirmedUpdateInstallationString=true' }
- { line: 'sys.languageId=en' }
- { line: 'sys.installationDir=/opt/atlassian/jira' }
- { line: 'executeLauncherAction$Boolean=true' }
- { line: 'httpPort$Long=8080' }
- { line: 'portChoice=default' }

- name: Executing jira upgradation
command: "{{ jira_download['dest'] }} -q -varfile /tmp/response.varfile"

Below Issue I am facing in the step "Executing jira upgradation",

fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": [
"delta": "0:00:03.502487",
"end": "2020-12-08 12:02:18.707628",
"invocation": {
"module_args": {
"_raw_params": "/tmp/atlassian-jira-software-8.1.0-x64.bin -q -varfile /tmp/response.varfile",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
"msg": "non-zero return code",
"rc": 1,
"start": "2020-12-08 12:02:15.205141",
"stderr": "No directory found in specified location",
"stderr_lines": [
"No directory found in specified location"
"stdout": "Unpacking JRE ...\nStarting Installer ...",
"stdout_lines": [
"Unpacking JRE ...",
"Starting Installer ..."


  • {{ jira_download_dir }} is /tmp
  • JIRA service has been stopped

1 answer

0 votes

It is probably what it says it is - the directory you have told it to use is not there, or the process owner does not have write and execute permissions on it.

Hello @Nic Brough _Adaptavist_ ,

After changing the owner and group of the files, still facing the same issue. 

Then your code is looking for the wrong directory, or it's not creating the directory it needs to.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,120 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you