Problem like this won't happen if move the ansible roles into CRI_XCBC repo
Context:
@atlurie was trying to put existing role, lmod_user, from CRI_XCBC into packer-repo, since the role uses a variable from group_vars/all, we also need to have the variable present in packer-repo/ansible folder.
graph TD subgraph packer-repo A[knightly build start] B[git clone CRI_XCBC] C[Build image] D[Start a new instance] E{Test the image} F[Swap floating IP from current knightly] G[Remove new instance and image] A --> B B -->|Setup vars in CRI_XCBC| C B -->|Setup vars in packer-repo| C C --> D D --> E E -->|Success| F E -->|Failed| G end subgraph CRI_XCBC H[PRs] I[Build/Test/Deploy] H -->|?| I end
Proposal:
graph TD subgraph CRI_XCBC A B C end subgraph packer-repo A[CRI_XCBC knightly build start] -->|Setup variables| C[Build image] B[CRI_XCBC PRs] -->|Setup variables| C C -->|trigger| D[Start a new instance] D -->E{Test} E -->|Success| F["Swap floating IP (knightly)"] E -->|Failed| G[Delete instance and image] E -->|Update status| B end