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

Warn Parameter Deprecated in Ansible 2.14 #194

Closed
JacobBuskirk opened this issue Apr 24, 2023 · 2 comments
Closed

Warn Parameter Deprecated in Ansible 2.14 #194

JacobBuskirk opened this issue Apr 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@JacobBuskirk
Copy link
Contributor

Describe the Issue
Received the following error:

TASK [rhel8-stig : PRELIM | RHEL-08-010020 | Check if /boot or /boot/efi reside on separate partitions] ***
fatal: [sso-tl-pst-p12]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."}

Expected Behavior
Task shouldn't fail

Actual Behavior
Task is failing due to warn parameter being deprecated in Ansible 2.14

Control(s) Affected
Any with warn parameter in shell/command

Environment (please complete the following information):

  • Ansible Version: 2.14.4
  • Host Python Version: 3.9.13
  • Ansible Server Python Version: 3.9.13

Additional Notes
https://github.com/ansible-community/ansible-build-data/blob/main/7/CHANGELOG-v7.rst#L4942

Possible Solution
Remove warn

@JacobBuskirk JacobBuskirk added the bug Something isn't working label Apr 24, 2023
@JacobBuskirk
Copy link
Contributor Author

I plan to make a pull request with warn removed to fix this

@uk-bolly
Copy link
Member

uk-bolly commented May 2, 2023

HI @JacobBuskirk

Thank you again for taking the time to highlight an issue and providing the relevant fix. Your PR is now merged. I will close this issue. Please feel free to reopen if there are still issues.

thanks again

uk-bolly

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