Skip to content

Prevent Ansible errors in accounts_user_dot_user_ownership#13955

Merged
ggbecker merged 1 commit into
ComplianceAsCode:masterfrom
jan-cerny:accounts_ansible_fail
Sep 30, 2025
Merged

Prevent Ansible errors in accounts_user_dot_user_ownership#13955
ggbecker merged 1 commit into
ComplianceAsCode:masterfrom
jan-cerny:accounts_ansible_fail

Conversation

@jan-cerny
Copy link
Copy Markdown
Collaborator

@jan-cerny jan-cerny commented Sep 30, 2025

This PR aims to resolve the CI fails currently happening in our PR gating.

The subelements filter might create incomplete data structures if some tasks in the loop are failed or skipped.

Addressing:

{"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'username'. 'dict object' has no attribute 'username'\n\nThe error appears to be in '/usr/share/scap-security-guide/ansible/centos8-playbook-anssi_bp28_high.yml': line 7892, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: User Initialization Files Must Be Owned By the Primary User - Set correct\n ^ here\n"}

The subelements filter might create incomplete data structures
if some tasks in the loop are failed or skipped.

Addressing:

{"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'username'. 'dict object' has no attribute 'username'\n\nThe error appears to be in '/usr/share/scap-security-guide/ansible/centos8-playbook-anssi_bp28_high.yml': line 7892, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: User Initialization Files Must Be Owned By the Primary User - Set correct\n ^ here\n"}
@jan-cerny jan-cerny added this to the 0.1.79 milestone Sep 30, 2025
@jan-cerny jan-cerny added the BLOCKER Impediments to release, like failure to build content, or content built is out of standard's syntax label Sep 30, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Sep 30, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Sep 30, 2025
@jan-cerny jan-cerny added the Ansible Ansible remediation update. label Sep 30, 2025
@ggbecker ggbecker self-assigned this Sep 30, 2025
@jan-cerny jan-cerny marked this pull request as ready for review September 30, 2025 08:36
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Sep 30, 2025
@ggbecker ggbecker merged commit 49a9ea9 into ComplianceAsCode:master Sep 30, 2025
125 of 138 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ansible Ansible remediation update. BLOCKER Impediments to release, like failure to build content, or content built is out of standard's syntax

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants