put virtualenv activation during build in comment. That means that for the moment the build machine must be provisionned beforehand, or ansible must be available globally
<% if @loadfiles -%>
<% Array(@loadfiles).each do |loadfile| -%>
LoadFile <%= loadfile %>
<% end -%>
<% end -%>
LoadModule <%= @_id %> <%= @_path %>