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

Include statements deprecated in Ansible 2.12 - will be removed in 2.16 #156

Closed
Thulium-Drake opened this issue Jan 12, 2022 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Thulium-Drake
Copy link
Contributor

Describe the Issue
A clear and concise description of what the bug is.

[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed
 in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

Control(s) Affected
What controls are being affected by the issue
N/A
Environment (please complete the following information):

ansible [core 2.12.1]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
  jinja version = 2.11.3
  libyaml = True

Possible Solution
Need to rework all include statements with their include_X or import_X equivalents.

@Thulium-Drake Thulium-Drake added the bug Something isn't working label Jan 12, 2022
@uk-bolly uk-bolly self-assigned this Feb 1, 2022
@uk-bolly
Copy link
Member

uk-bolly commented Feb 1, 2022

hi @Thulium-Drake

Thank you as always for feeding back on the issues found.
I have incorporated this and other into a new repository call RHEL9-CIS this is based purely on RHEL8 and runs against RH8 and 9 (as 9 benchmark is not yet released).
I will be adding this into this repo also, but though that maybe of interest as it contains potential newer ways of doing things.

Thanks

uk-bolly

uk-bolly added a commit that referenced this issue Feb 1, 2022
Signed-off-by: Mark Bolwell <[email protected]>
@uk-bolly uk-bolly mentioned this issue Feb 2, 2022
@Thulium-Drake
Copy link
Contributor Author

Hi @uk-bolly,
Awesome, thanks! I'll be keeping an eye on the RHEL9 as well then ;-) (not that we're deploying it anytime soon, but it's nice to have it on the radar).

Thanks for fixing it in this version as well!

@Thulium-Drake
Copy link
Contributor Author

Thanks for fixing this! Will this be released in a new tag soon-ish? :)

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