We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823addc commit 52bdefcCopy full SHA for 52bdefc
1 file changed
src/main/groovy/com/rundeck/plugins/ansible/ansible/AnsibleRunner.java
@@ -515,7 +515,9 @@ public int run() throws Exception {
515
if (type == AnsibleCommand.AdHoc){
516
processEnvironment.put("ANSIBLE_LOAD_CALLBACK_PLUGINS", "1");
517
processEnvironment.put("ANSIBLE_CALLBACKS_ENABLED", "ansible.builtin.tree");
518
- processEnvironment.put("ANSIBLE_CALLBACK_TREE_DIR", baseDirectory.toFile().getAbsolutePath());
+ if (baseDirectory != null) {
519
+ processEnvironment.put("ANSIBLE_CALLBACK_TREE_DIR", baseDirectory.toFile().getAbsolutePath());
520
+ }
521
}
522
523
if (configFile != null && !configFile.isEmpty()) {
0 commit comments