Skip to content

ISSUE Rule 5.1.4 | PATCH | Ensure sshd Ciphers are configured #414

@kpi-nourman

Description

@kpi-nourman

Describe the Issue
I set vars rhel9cis_crypto_policy_module: 'OSPP' but task still Skipping

TASK [RHEL9-CIS-v2.0.0-releasetag-2.0.3 : 5.1.4 | PATCH | Ensure sshd Ciphers are configured | Add submodule exclusion] ***
task path: /runner/project/roles/RHEL9-CIS-v2.0.0-releasetag-2.0.3/tasks/section_5/cis_5.1.x.yml:99
skipping: [bsdvappdev254] => {
    "changed": false,
    "false_condition": "'NO-SSHWEAKCIPHERS' not in rhel9cis_crypto_policy_module",
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/rhel9_newsystem_vars.yml'

TASK [RHEL9-CIS-v2.0.0-releasetag-2.0.3 : 5.1.4 | PATCH | Ensure sshd Ciphers are configured | submodule to crypto policy modules] ***
task path: /runner/project/roles/RHEL9-CIS-v2.0.0-releasetag-2.0.3/tasks/section_5/cis_5.1.x.yml:110
skipping: [bsdvappdev254] => {
    "changed": false,
    "false_condition": "'NO-SSHWEAKCIPHERS' not in rhel9cis_crypto_policy_module",
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/rhel9_newsystem_vars.yml'

Expected Behavior
I try to add task debug after task rule 5.1.4 to see that vars success receive, and got my vars not in use.

TASK [RHEL9-CIS-v2.0.0-releasetag-2.0.3 : DEBUG | crypto policy module AFTER 5.1.4] ***
task path: /runner/project/roles/RHEL9-CIS-v2.0.0-releasetag-2.0.3/tasks/section_5/cis_5.1.x.yml:114
ok: [bsdvappdev254] => {
    "msg": [
        "rhel9cis_crypto_policy_module = :NO-SHA1:NO-WEAKMAC:NO-SSHCBC:NO-SSHWEAKCIPHERS:NO-SSHETM"
    ]
}
Read vars_file 'vars/rhel9_newsystem_vars.yml'

Control(s) Affected
Rule 5.1.4 | PATCH | Ensure sshd Ciphers are configured

Environment (please complete the following information):

  • branch being used: devel
  • Ansible Version: AAP 2.4

Possible Solution
Enter a suggested fix here

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions