Skip to content

Commit

Permalink
Create a rake task for writing plugin ansible content to a directory
Browse files Browse the repository at this point in the history
This task will be used to create an rpm for providing plugin
ansible content to the embedded ansible container image

https://www.pivotaltracker.com/story/show/157313841
  • Loading branch information
carbonin committed May 14, 2018
1 parent 7e090f5 commit 9b6fe1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/evm.rake
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,10 @@ namespace :evm do
end
EvmDatabase.raise_server_event(opts[:event])
end

desc "Write all plugin ansible content to a directory"
task :write_plugin_ansible_content => :environment do
dest_dir = ENV["ANSIBLE_CONTENT_DIR"] || Rails.root.join("tmp", "ansible_content")
EmbeddedAnsible.consolidate_plugin_playbooks(dest_dir)
end
end

0 comments on commit 9b6fe1e

Please sign in to comment.