Skip to content

Commit 3298d3b

Browse files
committed
clean AnsiblePlaybookInlineWorkflowNodeStep
1 parent d6fd35a commit 3298d3b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ 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);
4846
builder.property(VAULT_KEY_FILE_PROP);
4947
builder.property(VAULT_KEY_STORAGE_PROP);
5048
builder.property(EXTRA_ATTRS_PROP);
@@ -123,13 +121,7 @@ public void executeNodeStep(
123121
@Override
124122
public List<String> listSecretsPathWorkflowNodeStep(ExecutionContext context, INodeEntry node, Map<String, Object> configuration) {
125123
AnsibleRunnerContextBuilder builder = new AnsibleRunnerContextBuilder(node, context, context.getFramework(), configuration);
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;
124+
return AnsibleUtil.getSecretsPath(builder);
133125
}
134126

135127
@Override

0 commit comments

Comments
 (0)