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

Task 1.1.2.1.1 - Ensure /tmp is a separate partition #280

Open
msachikanta opened this issue Jan 22, 2025 · 0 comments
Open

Task 1.1.2.1.1 - Ensure /tmp is a separate partition #280

msachikanta opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@msachikanta
Copy link

Have you checked ReadtheDocs?:
Yes

Describe the Issue
Issue seems to be with tmp.mount.j2 template file as stated below:

Options=mode=1777,strictatime,{% if rhel9cis_rule_1_1_2_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_2_4 %}nosuid,{% endif %}{% if rhel9cis_rule_1_1_2_3 %}noexec{% endif %}

The following variables doesn't exists:

rhel9cis_rule_1_1_2_2
rhel9cis_rule_1_1_2_3
rhel9cis_rule_1_1_2_4

Rather I would say they should be replaced with following variables:

rhel9cis_rule_1_1_2_1_2
rhel9cis_rule_1_1_2_1_3
rhel9cis_rule_1_1_2_1_4

Expected Behavior
I expect the task should be implemented successfully.

Actual Behavior
Getting following error during ansible run:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'rhel9cis_rule_1_1_2_2' is undefined

Control(s) Affected
Following controls are being affected by the issue.

rhel9cis_rule_1_1_2_1_2
rhel9cis_rule_1_1_2_1_3
rhel9cis_rule_1_1_2_1_4

Environment (please complete the following information):

  • branch being used: devel

Additional Notes
Please provide a fix as soon as possible.

Possible Solution
Suggested fix will be replacing the variables from:

rhel9cis_rule_1_1_2_2
rhel9cis_rule_1_1_2_3
rhel9cis_rule_1_1_2_4

To:

rhel9cis_rule_1_1_2_1_2
rhel9cis_rule_1_1_2_1_3
rhel9cis_rule_1_1_2_1_4

In the tmp.mount.j2 template file.

@msachikanta msachikanta added the bug Something isn't working label Jan 22, 2025
uk-bolly added a commit that referenced this issue Jan 22, 2025
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
@uk-bolly uk-bolly self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants