Use Ansible to setup environment?

We create a separate sub-shell for each command that is executed during the build, so the env vars your Ansible command sets up will not be preserved in the subsequent commands.

The only exception would be if you add the necessary variable declarations to the end of the ~/.circlerc file—that file is sourced before each command.

1 Like