From 7ce3debc5d8c9b850c5d167b43221dc974de277b Mon Sep 17 00:00:00 2001 From: Ladislav Smola Date: Tue, 24 Jul 2018 09:51:14 +0200 Subject: [PATCH] Empty project dir no longer needed Empty project dir no longer needed Fixed in https://github.com/ansible/ansible-runner/issues/88 --- lib/ansible/runner.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/runner.rb b/lib/ansible/runner.rb index d2933ae1172..ab2c6de4c88 100644 --- a/lib/ansible/runner.rb +++ b/lib/ansible/runner.rb @@ -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)}'",