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

DEPRECATION WARNING is generating when play task 6.1.11 | AUDIT | Ensure no ungrouped files or directories exist #168

Closed
Illibur opened this issue Feb 6, 2024 · 1 comment · Fixed by #177
Labels
enhancement New feature or request

Comments

@Illibur
Copy link
Contributor

Illibur commented Feb 6, 2024

Feature Request or Enhancement

  • Enhancement [x]

Summary of Request
I want to not get any warnings after playing task 6.1.11 | AUDIT | Ensure no ungrouped files or directories exist

Currently this is the output: [DEPRECATION WARNING]: Specifying a list of dictionaries for vars is deprecated in favor of specifying a dictionary. This feature will be removed in version 2.18.

Describe Alternatives You've Considered
As an alternative solution this tip could be used: Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. But it doesn't solve the problem.

Suggested Code
To do that the list of dictionaries on line https://github.com/Illibur/RHEL9-CIS/blob/devel/tasks/section_6/cis_6.1.x.yml#L233 should be replaced with using a dictionary

  vars:
      - rhel_09_6_1_11_ungrouped_files_found: false

change into:

  vars:
      rhel_09_6_1_11_ungrouped_files_found: false
@Illibur Illibur added the enhancement New feature or request label Feb 6, 2024
@RoboPickle
Copy link
Contributor

Thanks Illibur. That was bugging me too. I can roll that into my #177 PR.

RoboPickle added a commit to RoboPickle/RHEL9-CIS that referenced this issue Feb 16, 2024
findings in issue ansible-lockdown#168. Changed vars on line 233 to use dictionary.

Signed-off-by: John Foster <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants