Change 'only_if:' to 'when:'