This appears to be a two-sided test. Since the $p$-value $0.03$ is the probability of an observation as extreme as or more extreme than the observed sample mean $\hat{\mu}$, then assuming normal distributions and large samples, $\hat{\mu} = 7 \pm 2.17\sigma$, that is,
the observed sample mean $\hat{\mu}$ is larger (or smaller) than the mean $7$ under the null hypothesis by $2.17$ standard deviations. Note that $P\{Z > 2.17\}\approx 0.015$ for a standard normal random variable $Z$. But, under the assumption that the data is a large sample of independent identically distributed normal random variables, the sample mean is normal with standard deviation $\sigma$, its observed value $\hat{\mu}$ is the
maximim-likelihood estimator
for the mean, and the $95\%$ confidence interval for the
mean is the interval $(\hat{\mu} - 1.96\sigma, \hat{\mu} + 1.96\sigma)$ and does not include $7 = \hat{\mu} \pm 2.17\sigma$.
Note that this answer makes several assumptions that might not be applicable in this problem. Other assumptions e.g. small samples, non-normal data, different method
for construction of the confidence interval, disbelief in frequentist hypothesis
testing and confidence intervals, etc. can lead to different conclusions as to
whether the confidence interval contains $7$ or not.