Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/ansible.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ var Playbook = function () {
return this;
}

this.file = function(file){
this.config.file = file;
return this
}

this.variables = function(variables) {
this.config.variables = variables;
return this;
Expand Down Expand Up @@ -288,6 +293,11 @@ var Playbook = function () {
this.config.playbook + ".yml"
];

if(this.config.file){
let fileArg = this.config.file
result = result.concat('-e', fileArg)
}

if (this.config.variables) {
var args = JSON.stringify(this.config.variables);
result = result.concat('-e', args);
Expand Down