use `platform_family?` method on the node instance

```ruby
only_if{ node.platform_family?('rhel', 'suse') }
```