default[:php][:version] = "7.4"
default[:php][:fpm][:options] = {}

default[:php][:version] = if node[:lsb][:release].to_f < 22.04
                            "7.4"
                          else
                            "8.1"
                          end
default[:php][:fpm][:options] = {}

Use PHP 8.1 on Ubuntu 22.04
Use PHP 8.1 on Ubuntu 22.04
