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

Ansible profile playbooks are failing ansible-lint because of wrong indentation #9314

Open
vojtapolasek opened this issue Aug 9, 2022 · 0 comments
Labels
Ansible Ansible remediation update. Infrastructure Our content build system triaged

Comments

@vojtapolasek
Copy link
Collaborator

Description of problem:

When you build a product which has ansible playbooks and enable tests for linting of playbooks, they fail. I think the reason is that when a list is defined (e.g. tags), the definition of list items is not indented with respect to the list. For example it should be:

      tags:
        - some_tag

But now there is:

      tags:
      - some_tag

SCAP Security Guide Version:

Master as of 2022-08-09

Operating System Version:

RHEL9

Steps to Reproduce:

  1. edit CmakeLists.txt and set the option ANSIBLE_CHECKS to ON.
  2. build RHEL9 content
  3. cd build/
  4. ctest -R '.ansible.'

Actual Results:

There will be many warnings about Ansible syntax check errors related to indentation.

Expected Results:

No warningss

Additional Information/Debugging Steps:

I think it is caused by PR #8588 which introduced a new yaml dumper.

@marcusburghardt marcusburghardt added Infrastructure Our content build system Ansible Ansible remediation update. labels Oct 5, 2022
@Mab879 Mab879 added the triaged label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ansible Ansible remediation update. Infrastructure Our content build system triaged
Projects
None yet
Development

No branches or pull requests

3 participants