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

Spelling Corrections and variable name update #373

Open
msachikanta opened this issue May 14, 2024 · 3 comments
Open

Spelling Corrections and variable name update #373

msachikanta opened this issue May 14, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@msachikanta
Copy link

msachikanta commented May 14, 2024

Spelling corection

There are few spelling corrections needed in following files:

tasks --> prelimyml file, line number 183
tasks --> section_4 --> cis_4.3.x.yml, linumber 67

The files\etc\systemd\system\tmp.mount.j2 file needs to be updated with correct variable names.

Expected Behavior

It supposed to be appearing as:

tasks --> prelimyml file, line number 183
register: discovered_sudoers_files

tasks --> section_4 --> cis_4.3.x.yml, linumber 67
loop: "{{ discovered_sudoers_files.stdout_lines }}"

files\etc\systemd\system\tmp.mount.j2
Options=mode=1777,strictatime,{% if rhel8cis_rule_1_1_2_1_2 %}nodev,{% endif %}{% if rhel8cis_rule_1_1_2_1_3 %}nosuid,{% endif %}{% if rhel8cis_rule_1_1_2_1_4 %}noexec{% endif %}

Actual Behavior

Currently its appearing as:

tasks --> prelimyml file, line number 183
register: discovered_sudoers_filess

tasks --> section_4 --> cis_4.3.x.yml, linumber 67
loop: "{{ discovered_sudoers_filess.stdout_lines }}"

files\etc\systemd\system\tmp.mount.j2
Options=mode=1777,strictatime,{% if rhel8cis_rule_1_1_2_2 %}nodev,{% endif %}{% if rhel8cis_rule_1_1_2_4 %}nosuid,{% endif %}{% if rhel8cis_rule_1_1_2_3 %}noexec{% endif %}

Environment (please complete the following information):

  • branch being used: [devel]

Possible Solution

Correcting the spellings and renaming the variables in tmp.mount.j2 file will fix the above issues.

@msachikanta msachikanta added the bug Something isn't working label May 14, 2024
@msachikanta msachikanta changed the title Spelling Correction and few other issues to be addressed Spelling Corrections May 14, 2024
@msachikanta msachikanta changed the title Spelling Corrections Spelling Corrections and variables name update May 14, 2024
@msachikanta msachikanta changed the title Spelling Corrections and variables name update Spelling Corrections and variable name update May 14, 2024
@uk-bolly uk-bolly self-assigned this May 17, 2024
@uk-bolly
Copy link
Member

hi @msachikanta

Thank you for raising this issue, i'm looking and putting a few fixes together and submitting the PR shortly.

Many thanks

uk-bolly

@msachikanta
Copy link
Author

msachikanta commented May 17, 2024

Thanks @uk-bolly

I still can see the variable discovered_sudoers_filess is been used in the task 4.3.5:

Branch: may_24_updates
Task File: section_4/cis_4.3.x.yml

- name: "4.3.5 | PATCH | Ensure re-authentication for privilege escalation is not disabled globally"
  ansible.builtin.replace:
      path: "{{ item }}"
      regexp: '^([^#].*)!authenticate(.*)'
      replace: '\1authenticate\2'
      validate: '/usr/sbin/visudo -cf %s'
  loop: "{{ discovered_sudoers_filess.stdout_lines }}"

Could you please update this one as well?

Thanks, Sachi

@uk-bolly
Copy link
Member

hi @msachikanta

Consider it done :)
thank you and great spot.

uk-bolly

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