default[:php][:version] = "7.2"

default[:php][:version] = if node[:lsb][:release].to_f < 20.04
                            "7.2"
                          else
                            "7.4"
                          end

Use PHP 7.4 on Ubuntu 20.04
Use PHP 7.4 on Ubuntu 20.04
