diff --git a/cookbooks/fb_dnf/recipes/default.rb b/cookbooks/fb_dnf/recipes/default.rb index 42e6bbb27..953a26c46 100644 --- a/cookbooks/fb_dnf/recipes/default.rb +++ b/cookbooks/fb_dnf/recipes/default.rb @@ -41,6 +41,8 @@ notifies :run, 'whyrun_safe_ruby_block[clean chef yum metadata]', :immediately end -fb_dnf_modularity 'manage modularity' +fb_dnf_modularity 'manage modularity' do + not_if { node['fb_dnf']['modules'].empty? } +end include_recipe 'fb_dnf::packages'