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

Updates handlers for new ansible syntax and deprecated options for legacy commands #602

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

jsievertde
Copy link
Contributor

fixes the handler file and set new syntax

fixes the handler file and set new syntax

Signed-off-by: Jacob Sievert <jacob.sievert@sievert-mail.de>
@rndmh3ro
Copy link
Member

What's the reason you used ansible.legacy.command instead of ansible.builtin.command?

@jsievertde
Copy link
Contributor Author

Hmm you are right that ansible.builtin.command would be better, thought that the deprecation of the direct command module was already in the pipeline.
Seems that that is no longer planned.
Will change it.

Signed-off-by: Jacob Sievert <jacob.sievert@sievert-mail.de>
@rndmh3ro rndmh3ro added the patch label Nov 24, 2022
@rndmh3ro rndmh3ro merged commit ade6dee into dev-sec:master Nov 24, 2022
@rndmh3ro
Copy link
Member

Thanks!

rndmh3ro pushed a commit to CaptainSifff/ansible-collection-hardening that referenced this pull request Nov 28, 2022
…gacy commands (dev-sec#602)

* Update main.yml

fixes the handler file and set new syntax

Signed-off-by: Jacob Sievert <jacob.sievert@sievert-mail.de>

* changes command module from legacy to builtin.

Signed-off-by: Jacob Sievert <jacob.sievert@sievert-mail.de>

Signed-off-by: Jacob Sievert <jacob.sievert@sievert-mail.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants