default[:ruby][:version] = if node[:lsb][:release].to_f < 20.04
                             "2.5"
                           else
                             "2.7"
                           end
default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"

default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
                             "2.7"
                           else
                             "3.0"
                           end
default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"

Use ruby 3.0 on Ubuntu 22.04
Use ruby 3.0 on Ubuntu 22.04
