Skip to content

Commit

Permalink
Empty project dir no longer needed
Browse files Browse the repository at this point in the history
Empty project dir no longer needed

Fixed in ansible/ansible-runner#88
  • Loading branch information
Ladas committed Jul 24, 2018
1 parent 9824734 commit 7ce3deb
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 7ce3deb

Please sign in to comment.