Vitamin D is important but a word of caution from an Australian that spends a lot of time outdoors (I have a lawn mowing business)- skin cancer is the third leading cancer in Australia with about 20k cases diagnosed each year. Notably there are twice as many men as women diagnosed (likely due to men getting more sun exposure on average). A bit of sun is no doubt healthy, vitamin d is no doubt good, but it does come with risk.
https://www.canceraustralia.gov.au/cancer-types/melanoma/statistics