itamae/cookbooks/base/ufw.rb

7 lines
149 B
Ruby
Raw Normal View History

2019-03-03 08:50:49 +00:00
execute 'ufw reload-or-enable' do
user 'root'
command 'LANG=C ufw reload | grep skipping && ufw --force enable || exit 0'
action :nothing
end