Fix Molecule converge failure after hostname change - #17
Conversation
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
Test Results44 tests 43 ✅ 2s ⏱️ Results for commit 37f0f3a. ♻️ This comment has been updated with latest results. |
|
CI is still failing, please try again @copilot |
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
Addressed in |
|
Nope still wrong, look thoroughly at the problem please @copilot |
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
Addressed in |
|
@copilot I think the issue is difference now but there is still an error:
Look into it and fix it. |
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
Addressed in |
|
@copilot one test is still failing. Please fix it: |
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
... Addressed in |
|
New CI error @copilot , please investigate and fix: |
Co-authored-by: MelvinLoos <1757355+MelvinLoos@users.noreply.github.com>
... Addressed in |
The
molecule-testinfraGitHub Actions job was failing during converge after the playbook renamed the host. Subsequent privileged tasks could no longer escalate because the new hostname was not kept locally resolvable.Root cause
provision_host.ymlchanged the system hostname early in the play.become/sudooperations can fail if the current hostname is not mapped in/etc/hosts.Playbook change
127.0.1.1aligned with the configured role-based hostname.Contract coverage
/etc/hosts.