diff --git a/recipes/epel.rb b/recipes/epel.rb index ccc3cffd..dcbec4bf 100644 --- a/recipes/epel.rb +++ b/recipes/epel.rb @@ -31,4 +31,5 @@ rpm_package "epel-release" do source "#{Chef::Config[:file_cache_path]}/epel-release-#{epel}.noarch.rpm" + only_if {::File.exists?("#{Chef::Config[:file_cache_path]}/epel-release-#{epel}.noarch.rpm")} end