Skip to content

Commit

Permalink
Merge pull request #17750 from Ladas/empty_project_dit_no_longer_needed
Browse files Browse the repository at this point in the history
Empty project dir no longer needed
  • Loading branch information
agrare authored Jul 25, 2018
2 parents ddf8fca + 7ce3deb commit 2c65b66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ansible/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ def run_queue(env_vars, extra_vars, playbook_path, user_id, queue_opts)

def run_via_cli(env_vars, extra_vars, playbook_path)
Dir.mktmpdir("ansible-runner") do |base_dir|
Dir.mkdir(File.join(base_dir, 'project')) # without this, there is a silent fail of the ansible-runner command see https://github.com/ansible/ansible-runner/issues/88

result = AwesomeSpawn.run!(ansible_command(base_dir),
:env => env_vars,
:params => [{:cmdline => "--extra-vars '#{JSON.dump(extra_vars)}'",
Expand Down

0 comments on commit 2c65b66

Please sign in to comment.