Skip to content

Commit

Permalink
Merge pull request #267 from jimr6007/master
Browse files Browse the repository at this point in the history
delete temp/local copy of inline playbook after execution
  • Loading branch information
frozenice authored Feb 19, 2020
2 parents 6e8503f + d0c7684 commit ee626c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/batix/rundeck/core/AnsibleRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ public int run() throws Exception {
if (tempVaultFile != null && !tempVaultFile.delete()) {
tempVaultFile.deleteOnExit();
}
if (tempPlaybook != null && !tempPlaybook.delete()) {
tempPlaybook.deleteOnExit();
}

if (usingTempDirectory && !retainTempDirectory) {
deleteTempDirectory(baseDirectory);
}
Expand Down

0 comments on commit ee626c1

Please sign in to comment.