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

Incorrect templating for level1/2 vars #9

Closed
zac90 opened this issue Jul 7, 2023 · 0 comments
Closed

Incorrect templating for level1/2 vars #9

zac90 opened this issue Jul 7, 2023 · 0 comments
Assignees

Comments

@zac90
Copy link

zac90 commented Jul 7, 2023

A lot of sections for level2 server/workstation have no nested if structure to avoid templating them in if level 2. eg:
{{ if .Vars.ubtu22cis_level_2 }}

There are too many to list but it causes the audit to say a number of tasks have failed because of it, when running the playbook at a level1-server standard.

I recommend going through each section and applying that if statement to any that are for level 2 only. The level 1 check by my understanding is implicit as a level 2 server needs to also be at a level 1 standard, so there shouldn't be any if statements for level 1, as all the tasks set at a level 1 standard will need to run either for level 1 or 2.

@uk-bolly uk-bolly self-assigned this Sep 11, 2023
uk-bolly added a commit that referenced this issue Sep 11, 2023
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
@uk-bolly uk-bolly mentioned this issue Oct 30, 2023
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

2 participants