Health ministers agree to cannabis plan