Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Linux 2 fails with "not suitable" #72

Open
twolsten opened this issue Nov 19, 2019 · 3 comments
Open

Amazon Linux 2 fails with "not suitable" #72

twolsten opened this issue Nov 19, 2019 · 3 comments

Comments

@twolsten
Copy link

Leveraging packer to build Amazon Linux 2 ami and get the following error:

amazon-ebs: TASK [anthcourtney.cis-amazon-linux : Preflight - Fail if host is not suitable for this benchmark] ***
amazon-ebs: fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "This benchmark is not suitable for the destination operating system"}

Using latest Amazon Linux 2 AMI (ami-00dc79254d0461090)

@nebul4ck
Copy link

I have added a new item (- "2") at vars/main.yml "cis_target_os_versions:" var and it work for me.

@twolsten
Copy link
Author

Thanks, I will try this.

@gbvanrenswoude
Copy link

Alternatively you can override discovered facts:

- set_fact:
     ansible_distribution_version: "2017.12"

And then execute the rest.

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

No branches or pull requests

3 participants