Changed to ansible method of setting environment

Environment variable has been set using the officially endorsed method
by ansible instead to resolve issues with previous method.