Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

verify failed with 'inspec_download_url' is undefined #24

Open
corbesero opened this issue Aug 26, 2021 · 2 comments
Open

verify failed with 'inspec_download_url' is undefined #24

corbesero opened this issue Aug 26, 2021 · 2 comments

Comments

@corbesero
Copy link

The verify step fails.

The relevant failure text is vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
TASK [Download Inspec] *********************************************************
fatal: [instance]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'inspec_download_url' is undefined\n\nThe error appears to be in '/home/ansible/ansible-repo/roles/sgc_base/molecule/xyzzy/verify.yml': line 44, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Download Inspec\n ^ here\n"}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

From the uploaded run output, no platform is picked, so that variable never gets set.

molecule-fail.txt

@corbesero
Copy link
Author

corbesero commented Aug 27, 2021

I think I found the problem.
When molecule init creates the mulecule.yml file, it set sthe docker image to docker.io/pycontribs/centos:8, but the verify.yml never checks to see if it connecting to a centos 8. I changed the centos image to 7 and it worked.

So, the problem is a missing check in verify.yml.

@Cinux90
Copy link

Cinux90 commented Oct 27, 2021

@corbesero I can confirm that i had the same issue and fixed it on the same way 👍
Thanks for finding it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants