I don't believe you can use `platform_family` this way. Here is how I would do it

```Ruby
case 
when platform_family?("rhel")
    # code here
when platform_family?("ubuntu") and node['platform_version'].to_f >= 10.04
   # more code
end