itamae/cookbooks/lxc/ufw.rb

7 lines
149 B
Ruby
Raw Permalink Normal View History

2024-11-03 03:10:06 +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