Skip to content

Commit 71b4af9

Browse files
committed
Added Inline Playbook option for testing
1 parent 1fa16df commit 71b4af9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public class AnsiblePlaybookInlineWorkflowNodeStep implements NodeStepPlugin, An
4343
builder.property(PLAYBOOK_INLINE_PROP);
4444
builder.property(EXTRA_VARS_PROP);
4545
builder.property(CONFIG_ENCRYPT_EXTRA_VARS);
46+
builder.property(GENERATE_INVENTORY_PROP);
47+
builder.property(GENERATE_INVENTORY_NODES_AUTH);
4648
builder.property(VAULT_KEY_FILE_PROP);
4749
builder.property(VAULT_KEY_STORAGE_PROP);
4850
builder.property(EXTRA_ATTRS_PROP);
@@ -121,7 +123,13 @@ public void executeNodeStep(
121123
@Override
122124
public List<String> listSecretsPathWorkflowNodeStep(ExecutionContext context, INodeEntry node, Map<String, Object> configuration) {
123125
AnsibleRunnerContextBuilder builder = new AnsibleRunnerContextBuilder(node, context, context.getFramework(), configuration);
124-
return AnsibleUtil.getSecretsPath(builder);
126+
List<String> secretPaths = AnsibleUtil.getSecretsPath(builder);
127+
List<String> secretPathsNodes = builder.getListNodesKeyPath();
128+
129+
if(secretPathsNodes != null && !secretPathsNodes.isEmpty()){
130+
secretPaths.addAll(secretPathsNodes);
131+
}
132+
return secretPaths;
125133
}
126134

127135
@Override

0 commit comments

Comments
 (0)