RPL-69 Enable custom tmp on ansible #405
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before submitting this PR:
About this change:
This update modifies the Ansible plugin and its sidecar to support the use of a custom temporary directory instead of the default /tmp directory. The sidecar now forwards the overridden tmp path from the runner to the framework, enabling the plugin to correctly generate and use temporary scripts in the specified location.
This change resolves an issue where Ansible commands failed when attempting to use a non-default temporary directory, ensuring compatibility with environments that restrict or do not support the default /tmp directory.
Jira Ticket: https://pagerduty.atlassian.net/browse/RPL-69
Changes on the Ansible plugin:
#405
Purpose of the Changes:
Allow Ansible plugin to use a custom tmp dir to generate
Customer Impact:
This resolves an issue preventing users from successfully running Ansible commands when a custom temporary directory is required. The enhancement ensures compatibility with environments where the /tmp directory is restricted or unsuitable.
Release Notes:
Kind of Change
Development Checklist
Specific Considerations:
GUI Changes:
Testing:
java -Drunner.log.output=console -Drunner.rundeck.overrideTempDir=true -Drunner.dirs.tmp=/my/custom/tmp/ -Dorg.sqlite.tmpdir=/my/custom/tmp/ -jar runner.jar
Run an ansible job and it should run creating tmp files on the defined path.
Testing setup:
Can be tested locally with a rundeck server and a runner running locally or on docker.
Acceptance Criteria:
QA/Bug Bash Needed?
Manual QA Notes:
Reviewer Checklist
Functionality (choose one):
Code: