You can compare directly.

```
if node['os'] == 'linux'
```