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

OpenBSD does not set distributiuon_major_version #597

Merged
merged 1 commit into from
Nov 4, 2022
Merged

OpenBSD does not set distributiuon_major_version #597

merged 1 commit into from
Nov 4, 2022

Conversation

dennisse
Copy link
Contributor

@dennisse dennisse commented Nov 4, 2022

This role fails with The task includes an option with an undefined variable on OpenBSD because distributiuon_major_version is not set on OpenBSD.

We should either default to "" if the variable is not set, or remove vars/OpenBSD.yml. I would prefer the former :)

@rndmh3ro
Copy link
Member

rndmh3ro commented Nov 4, 2022

Seems reasonable.

Can you fix the linting please?

Jinja2 spacing could be improved: {{ ansible_facts.distribution }}_{{ ansible_facts.distribution_major_version|default() }}.yml -> {{ ansible_facts.distribution }}_{{ ansible_facts.distribution_major_version | default() }}.yml

Also please sign-off your commits (see https://github.com/dev-sec/ansible-collection-hardening/pull/597/checks?check_run_id=9290990385)

This role fails with `The task includes an option with an undefined variable` on OpenBSD because `distributiuon_major_version` is not set on OpenBSD.

We should either default to "" if the variable is not set, or remove `vars/OpenBSD.yml`. I would prefer the former :)

Signed-off-by: Dennis Eriksen <d@ennis.no>
@dennisse
Copy link
Contributor Author

dennisse commented Nov 4, 2022

There :)

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

Successfully merging this pull request may close these issues.

2 participants